Switch to built-ins for testing booleans

This commit is contained in:
Andrew Stewart 2014-02-24 09:18:00 -08:00
parent fbd558183b
commit 0fb3d27a0d
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@
return expect(pin.status).to.be.eql("low"); return expect(pin.status).to.be.eql("low");
}); });
return it("sets @ready to false by default", function() { return it("sets @ready to false by default", function() {
return expect(pin.ready).to.be.eql(false); return expect(pin.ready).to.be["false"];
}); });
}); });
describe("#connect", function() { describe("#connect", function() {

View File

@ -18,7 +18,7 @@ describe "DigitalPin", ->
expect(pin.status).to.be.eql "low" expect(pin.status).to.be.eql "low"
it "sets @ready to false by default", -> it "sets @ready to false by default", ->
expect(pin.ready).to.be.eql false expect(pin.ready).to.be.false
describe "#connect", -> describe "#connect", ->
it "sets @mode if it wasn't already set", -> it "sets @mode if it wasn't already set", ->