refactor(Cypress): add nodemodules
This commit is contained in:
20
node_modules/parents/test/dirname.js
generated
vendored
Normal file
20
node_modules/parents/test/dirname.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
var test = require('tap').test;
|
||||
var parents = require('../');
|
||||
|
||||
test('dirname', function (t) {
|
||||
var dirs = parents('/foo/bar/baz/quux');
|
||||
t.same(dirs, [
|
||||
'/foo/bar/baz/quux',
|
||||
'/foo/bar/baz',
|
||||
'/foo/bar',
|
||||
'/foo',
|
||||
'/',
|
||||
]);
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('root', function (t) {
|
||||
var dirs = parents('/');
|
||||
t.same(dirs, [ '/' ]);
|
||||
t.end();
|
||||
});
|
Reference in New Issue
Block a user