-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tape): Include Tape boilerplate.
- Loading branch information
Showing
7 changed files
with
47 additions
and
100 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
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
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,8 @@ | ||
import config from "./rollup-config"; | ||
|
||
export default Object.assign({}, config, { | ||
dest: "dist/bundles/rxjs-marbles-tape.umd.js", | ||
entry: "dist/tape/index.js", | ||
external: [...config.external, "tape"], | ||
moduleName: "rxjsMarblesTape" | ||
}); |
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,24 @@ | ||
/** | ||
* @license Copyright © 2017 Nicholas Jamieson. All Rights Reserved. | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://github.com/cartant/rxjs-marbles | ||
*/ | ||
|
||
import * as tape from "tape"; | ||
import { Context } from "../context"; | ||
import { marbles as _marbles } from "../marbles"; | ||
|
||
export { configure } from "../configuration"; | ||
export * from "../context"; | ||
export * from "../expect"; | ||
|
||
export function marbles(test: (m: Context, t: tape.Test) => void): any { | ||
|
||
return _marbles<tape.Test>((m, t) => { | ||
m.configure({ | ||
assert: t.ok.bind(t), | ||
assertDeepEqual: t.deepEqual.bind(t) | ||
}); | ||
test(m, t); | ||
}); | ||
} |
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,4 @@ | ||
{ | ||
"main": "../bundles/rxjs-marbles-tape.umd.js", | ||
"typings": "../tape/index.d.ts" | ||
} |