Sha256: dba4291e0dd4c53a4a19ae83ec281e48390a98a1c7880a40e0b2a5b7aa5200f3
Contents?: true
Size: 547 Bytes
Versions: 26
Compression:
Stored size: 547 Bytes
Contents
var vows = require("vows"), assert = require("assert"), smash = require("../"); var suite = vows.describe("smash.load"); suite.addBatch({ "load": { "on a simple file": { topic: function() { smash.load(["test/data/forty-two"], "foo", this.callback); }, "returns the evaluated expression": function(foo) { assert.strictEqual(foo, 42); }, "does not pollute the global namespace": function(foo) { assert.equal(typeof bar, "undefined"); } } } }); suite.export(module);
Version data entries
26 entries across 26 versions & 1 rubygems