Skip to content

Commit

Permalink
tests for gcanti#27, gcanti#28
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Aug 23, 2014
1 parent ddd7172 commit a4218b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,9 @@ describe('tuple', function () {
ko(Area.is([1, 2, 3]));
ko(Area.is([1, 'a']));
});
it('should not depend on `this`', function () {
ok([[1, 2]].every(Area.is));
});
});
describe('#update()', function () {
var Type = tuple([Str, Num]);
Expand Down Expand Up @@ -776,6 +779,9 @@ describe('list', function () {
it('should return true when x is a list', function () {
ok(Path.is([p1, p2]));
});
it('should not depend on `this`', function () {
ok([[p1, p2]].every(Path.is));
});
});
describe('#update()', function () {
var Type = list(Str);
Expand Down

0 comments on commit a4218b6

Please sign in to comment.