« index
Coverage for /Users/kris/q-io/spec/fs/mock/working-directory-spec.js : 100%
30 lines |
30 run |
0 missing |
0 partial |
3 blocks |
3 blocks run |
0 blocks missing
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | "use strict"; require("../../lib/jasmine-promise"); var Q = require("q"); var Mock = require("../../../fs-mock"); describe("mock working directory", function () { it("should perform actions relative to the given working directory", function () { var mock = Mock({ "a/b": { "c": { "d": 66, "e": 99 } } }, "a/b/c"); return mock.listTree() .then(function (list) { expect(list).toEqual([ ".", "d", "e" ]); }) }); }); |