Skip to content

Commit

Permalink
Spotinst - updating test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffnoehren committed Jan 2, 2018
1 parent 65195ba commit 36261f7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/plugins/create/create.test.js
Expand Up @@ -502,11 +502,14 @@ describe('Create', () => {
create.options.template = 'spotinst-java8';

return create.create().then(() => {
const dirContent = fs.readdirSync(tmpDir);
const dirContent = walkDirSync(tmpDir)
.map(elem => elem.replace(path.join(tmpDir, path.sep), ''));

expect(dirContent).to.include('package.json');
expect(dirContent).to.include('serverless.yml');
expect(dirContent).to.include('pom.xml');
expect(dirContent).to.include('./src/main/java/com/serverless/Handler.java');
expect(dirContent).to.include(path.join('src', 'main', 'java',
'com', 'serverless', 'Handler.java'));
expect(dirContent).to.include('.gitignore');
});
});
Expand Down

0 comments on commit 36261f7

Please sign in to comment.