« index
Coverage for /Users/kris/q-io/spec/fs/mock/object-spec.js : 100%
19 lines |
19 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 | "use strict"; require("../../lib/jasmine-promise"); var Q = require("q"); var FS = require("../../../fs"); describe("toObject", function () { it("should take a snapshot of a tree", function () { return FS.mock(FS.join(__dirname, "fixture")) .invoke("toObject") .then(function (tree) { expect(tree["hello.txt"].toString("utf-8")).toEqual("Hello, World!\n"); expect(Object.keys(tree)).toEqual(["hello.txt"]); }); }); }); |