Skip to content

Commit

Permalink
Test Must.prototype.symbol only if available.
Browse files Browse the repository at this point in the history
  • Loading branch information
moll committed Dec 18, 2015
1 parent 778eddb commit aec8673
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/must/symbol_test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
var Must = require("../..")
var assert = require("./assert")
var describeSymbol = typeof Symbol != "undefined" ? describe : xdescribe

describe("Must.prototype.symbol", function() {
describeSymbol("Must.prototype.symbol", function() {
it("must fail given null", function() {
assert.fail(function() { Must(null).be.symbol() })
})
Expand Down

0 comments on commit aec8673

Please sign in to comment.