]> gerrit.simantics Code Review - simantics/district.git/blob - node_modules/fs-vacuum/test/base-leaf-mismatch.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / 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 })