Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close #354
- Loading branch information
Showing
6 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
TAP version 13 | ||
ok 1 - type is Function | ||
ok 2 - type is Function | ||
ok 3 - type is Function | ||
not ok 4 - type is Object | ||
--- | ||
{"at":{"column":3,"file":"test/test/type-function.js","line":5},"compare":"===","found":"function","source":"t.type(t.type, Object)\n","wanted":"Object"} | ||
... | ||
|
||
Bail out! # type is Object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
TAP version 13 | ||
ok 1 - type is Function | ||
ok 2 - type is Function | ||
ok 3 - type is Function | ||
not ok 4 - type is Object | ||
--- | ||
{"at":{"column":3,"file":"test/test/type-function.js","line":5},"compare":"===","found":"function","source":"t.type(t.type, Object)\n","wanted":"Object"} | ||
... | ||
|
||
Bail out! # type is Object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
TAP version 13 | ||
ok 1 - type is Function | ||
ok 2 - type is Function | ||
ok 3 - type is Function | ||
not ok 4 - type is Object | ||
--- | ||
{"at":{"column":3,"file":"test/test/type-function.js","line":5},"compare":"===","found":"function","source":"t.type(t.type, Object)\n","wanted":"Object"} | ||
... | ||
|
||
not ok 5 - type is Object | ||
--- | ||
{"at":{"column":3,"file":"test/test/type-function.js","line":6},"compare":"===","found":"function","source":"t.type(function () {}, Object)\n","wanted":"Object"} | ||
... | ||
|
||
not ok 6 - type is Object | ||
--- | ||
{"at":{"column":3,"file":"test/test/type-function.js","line":7},"compare":"===","found":"function","source":"t.type(new Function(), Object)\n","wanted":"Object"} | ||
... | ||
|
||
1..6 | ||
# failed 3 of 6 tests | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
var t = require('../..') | ||
t.type(t.type, Function) | ||
t.type(function () {}, Function) | ||
t.type(new Function(), Function) | ||
t.type(t.type, Object) | ||
t.type(function () {}, Object) | ||
t.type(new Function(), Object) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
TAP version 13 | ||
ok 1 - type is Function | ||
ok 2 - type is Function | ||
ok 3 - type is Function | ||
not ok 4 - type is Object | ||
--- | ||
{"at":{"column":3,"file":"test/test/type-function.js","line":5},"compare":"===","found":"function","source":"t.type(t.type, Object)\n","wanted":"Object"} | ||
... | ||
|
||
not ok 5 - type is Object | ||
--- | ||
{"at":{"column":3,"file":"test/test/type-function.js","line":6},"compare":"===","found":"function","source":"t.type(function () {}, Object)\n","wanted":"Object"} | ||
... | ||
|
||
not ok 6 - type is Object | ||
--- | ||
{"at":{"column":3,"file":"test/test/type-function.js","line":7},"compare":"===","found":"function","source":"t.type(new Function(), Object)\n","wanted":"Object"} | ||
... | ||
|
||
1..6 | ||
# failed 3 of 6 tests | ||
___/# time=[0-9.]+(ms)?/~~~ | ||
|