prettier with semicolon

This commit is contained in:
Arwid Thornström
2022-09-15 13:17:13 +02:00
parent 83a5ae9ace
commit d7fc3ecf95
4 changed files with 32 additions and 21 deletions
+9 -9
View File
@@ -1,16 +1,16 @@
const { system, filesystem } = require('gluegun')
const { system, filesystem } = require('gluegun');
const src = filesystem.path(__dirname, '..')
const src = filesystem.path(__dirname, '..');
const cli = async cmd =>
system.run('node ' + filesystem.path(src, 'bin', 'pwcli') + ` ${cmd}`)
system.run('node ' + filesystem.path(src, 'bin', 'pwcli') + ` ${cmd}`);
test('outputs version', async () => {
const output = await cli('--version')
expect(output).toContain('0.0.1')
})
const output = await cli('--version');
expect(output).toContain('0.0.1');
});
test('outputs help', async () => {
const output = await cli('--help')
expect(output).toContain('0.0.1')
})
const output = await cli('--help');
expect(output).toContain('0.0.1');
});