|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
353 bytes
|
| Line | |
|---|
| 1 | var test = require('tape');
|
|---|
| 2 | var resolve = require('../');
|
|---|
| 3 | var path = require('path');
|
|---|
| 4 |
|
|---|
| 5 | test('subdirs', function (t) {
|
|---|
| 6 | t.plan(2);
|
|---|
| 7 |
|
|---|
| 8 | var dir = path.join(__dirname, '/subdirs');
|
|---|
| 9 | resolve('a/b/c/x.json', { basedir: dir }, function (err, res) {
|
|---|
| 10 | t.ifError(err);
|
|---|
| 11 | t.equal(res, path.join(dir, 'node_modules/a/b/c/x.json'));
|
|---|
| 12 | });
|
|---|
| 13 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.