Skip to content

Instantly share code, notes, and snippets.

@knowuh
Created January 19, 2012 17:18
Show Gist options
  • Save knowuh/1641293 to your computer and use it in GitHub Desktop.
Save knowuh/1641293 to your computer and use it in GitHub Desktop.
require("../../env");
require("d3");
components = require("../../../lab/lab.components");
var vows = require("vows"),
assert = require("assert");
var suite = vows.describe("lab.components");
suite.addBatch({
"Thermometer": {
topic: function() {
return new components.Thermometer("#thermometer");
},
"creates thermometer": function(t) {
assert.equal(t.max, 0.7)
}
}
});
suite.export(module);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment