Skip to content

Commit 5e59c2d

Browse files
Tamás Hódiaddaleax
Tamás Hódi
authored andcommitted
test: increase coverage for internal/module.js
PR-URL: #13673 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent ba20627 commit 5e59c2d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Flags: --expose-internals
2+
'use strict';
3+
require('../common');
4+
5+
const assert = require('assert');
6+
const stripShebang = require('internal/module').stripShebang;
7+
8+
[
9+
['', ''],
10+
['aa', 'aa'],
11+
['#!', ''],
12+
['#!bin/bash', ''],
13+
['#!bin/bash\naa', '\naa'],
14+
].forEach((i) => assert.strictEqual(stripShebang(i[0]), i[1]));

0 commit comments

Comments
 (0)