Skip to content

Commit

Permalink
improved share UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Apr 6, 2021
1 parent 5b23a17 commit 05065ea
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/commands/share/share.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
const share = require("./share");
const inquirer = require("inquirer");

test("Test transform", async () => {
await share.flattenAndIndent(template);
});

const template = {
AWSTemplateFormatVersion: "2010-09-09T00:00:00.000Z",
Transform: ["AWS::Serverless-2016-10-31"],
Resources: {
The_Consumer: {
Type: "AWS::Serverless::Function",
Properties: {
Runtime: "nodejs14.x",
CodeUri: "src/",
Handler: "The_Consumer.js",
Timeout: 3,
Environment: {
Variables: {
Number: 123,
},
},
Events: {
SQS: {
Type: "SQS",
Properties: {
Queue: null,
},
},
},
},
},
The_Queue: {
Type: "AWS::SQS::Queue",
Properties: {
Name: "test"
}
},
},
};

0 comments on commit 05065ea

Please sign in to comment.