Switch to built-ins for testing booleans
This commit is contained in:
parent
fbd558183b
commit
0fb3d27a0d
|
@ -23,7 +23,7 @@
|
|||
return expect(pin.status).to.be.eql("low");
|
||||
});
|
||||
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() {
|
||||
|
|
|
@ -18,7 +18,7 @@ describe "DigitalPin", ->
|
|||
expect(pin.status).to.be.eql "low"
|
||||
|
||||
it "sets @ready to false by default", ->
|
||||
expect(pin.ready).to.be.eql false
|
||||
expect(pin.ready).to.be.false
|
||||
|
||||
describe "#connect", ->
|
||||
it "sets @mode if it wasn't already set", ->
|
||||
|
|
Loading…
Reference in New Issue