mirror of
https://github.com/nodejs/node.git
synced 2025-05-18 19:31:09 +00:00

PR-URL: https://github.com/nodejs/node/pull/3599 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
10 lines
344 B
JavaScript
10 lines
344 B
JavaScript
'use strict'
|
|
var test = require('tap').test
|
|
var childPath = require('../../lib/utils/child-path.js')
|
|
|
|
test('childPath', function (t) {
|
|
t.is(childPath('/path/to', {name: 'abc'}), '/path/to/node_modules/abc', 'basic use')
|
|
t.is(childPath('/path/to', {package: {name: '@zed/abc'}}), '/path/to/node_modules/@zed/abc', 'scoped use')
|
|
t.end()
|
|
})
|