Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
yizhoucao committed Feb 26, 2019
1 parent 65d10a0 commit a1cf558
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/__snapshots__/util.test.ts.snap
Expand Up @@ -20,7 +20,7 @@ exports[`getStatusProcess commit useDynamo 1`] = `"FEED_AWS_PUBLIC"`;

exports[`getStatusProcess events do not useDynamo 1`] = `"EVENT_AWS_PRIVATE"`;

exports[`getStatusProcess events useDynamo 1`] = `"EVENT_AWS_PUBLIC"`;
exports[`getStatusProcess events useDynamo 1`] = `"EVENT_AWS_PUBLIC_OTHERS"`;

exports[`getStatusProcess fetchPrice do not useDynamo 1`] = `"FETCH_AWS_PRIVATE"`;

Expand Down
2 changes: 2 additions & 0 deletions src/utils/util.test.ts
Expand Up @@ -122,11 +122,13 @@ const option: IOption = util.parseOptions(['npm', 'run', 'tool', 'period=1']);
for (const tool of toolToTest) {
test(`getStatusProcess ${tool} useDynamo`, () => {
option.dynamo = true;
option.event = CST.EVENTS_OTHERS;
expect(util.getStatusProcess(tool, option)).toMatchSnapshot();
});

test(`getStatusProcess ${tool} do not useDynamo`, () => {
option.dynamo = false;
option.event = '';
expect(util.getStatusProcess(tool, option)).toMatchSnapshot();
});
}
Expand Down

0 comments on commit a1cf558

Please sign in to comment.