Skip to content

Commit 43682d0

Browse files
committed
Skip tests when in a browser environment
1 parent b2df2db commit 43682d0

File tree

1 file changed

+10
-2
lines changed
  • lib/node_modules/@stdlib/process/cwd/test

1 file changed

+10
-2
lines changed

lib/node_modules/@stdlib/process/cwd/test/test.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,26 @@
33
// MODULES //
44

55
var tape = require( 'tape' );
6+
var IS_BROWSER = require( '@stdlib/assert/is-browser' );
67
var cwd = require( './../lib' );
78

89

10+
// VARIABLES //
11+
12+
var opts = {
13+
'skip': IS_BROWSER
14+
};
15+
16+
917
// TESTS //
1018

11-
tape( 'main export is a function', function test( t ) {
19+
tape( 'main export is a function', opts, function test( t ) {
1220
t.ok( true, __filename );
1321
t.equal( typeof cwd, 'function', 'main export is a function' );
1422
t.end();
1523
});
1624

17-
tape( 'the function returns the current working directory', function test( t ) {
25+
tape( 'the function returns the current working directory', opts, function test( t ) {
1826
t.equal( cwd(), process.cwd(), 'returns current working directory' );
1927
t.end();
2028
});

0 commit comments

Comments
 (0)