Skip to content

Commit 62cd8fb

Browse files
committed
feat(core): Add tests for help command
1 parent 7a37358 commit 62cd8fb

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/core/test/help_tests.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict';
2+
3+
const tap = require('tap');
4+
const help = require('../src/lib/help');
5+
6+
tap.test('help - includes passed in version number', function(
7+
test
8+
) {
9+
//arrange
10+
const version = '⚡';
11+
12+
//act
13+
const result = help(version).trim();
14+
15+
//assert
16+
test.ok(result.startsWith(`Pattern Lab Node v${version}`));
17+
test.end();
18+
});

0 commit comments

Comments
 (0)