Skip to content

Commit 76dd307

Browse files
author
aponica-release
committed
unit test for Quit command.
1 parent 25faf64 commit 76dd307

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/unit/commands/test-quit.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
const assert = require('assert');
4+
const Quit = require('../../../lib/commands/quit');
5+
6+
const testCallback = err => console.info( err.message );
7+
const testQuit = new Quit( testCallback );
8+
9+
assert.strictEqual( testQuit.onResult, testCallback );

0 commit comments

Comments
 (0)