]> gerrit.simantics Code Review - simantics/district.git/blob - basic.js
715c40d584b57d0ac207d61d07c9899ee7b2073b
[simantics/district.git] / basic.js
1 var test = require ('tap') . test
2 var readdir = require ('../readdir.js')
3
4 test ('basic', function (t) {
5   // should not get {a,b}/{x,y}, but SHOULD get @org/ and @scope children
6   var expect = [ '@org/x', '@org/y', '@scope/x', '@scope/y', 'a', 'b' ]
7
8   readdir (__dirname + '/fixtures', function (er, kids) {
9     if (er)
10       throw er
11     t.same(kids, expect)
12     t.end()
13   })
14 })