]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/fs-vacuum/test/base-leaf-mismatch.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / fs-vacuum / test / base-leaf-mismatch.js
1 var test = require('tap').test
2
3 var vacuum = require('../vacuum.js')
4
5 test('vacuum errors when base is set and path is not under it', function (t) {
6   vacuum('/a/made/up/path', {base: '/root/elsewhere'}, function (er) {
7     t.ok(er, 'got an error')
8     t.equal(
9       er.message,
10       '/a/made/up/path is not a child of /root/elsewhere',
11       'got the expected error message'
12     )
13
14     t.end()
15   })
16 })