File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
lib/node_modules/@stdlib/process/cwd/test Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 33// MODULES //
44
55var tape = require ( 'tape' ) ;
6+ var IS_BROWSER = require ( '@stdlib/assert/is-browser' ) ;
67var 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} ) ;
You can’t perform that action at this time.
0 commit comments