Skip to content

Commit

Permalink
fix: export satisfy()
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Nov 23, 2017
1 parent f59f79f commit 4d1e797
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export default AssertOrder
export * from './AssertError'
export * from './AssertOrder'
export * from './interfaces'
export * from './satisfy'
2 changes: 1 addition & 1 deletion src/satisfy.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { test } from 'ava'
import { satisfy } from './satisfy'
import { satisfy } from './index'

test('primitive types will pass', t => {
satisfy(1, 1)
Expand Down
1 change: 1 addition & 0 deletions src/satisfy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class MissingProperty extends Error {
Object.setPrototypeOf(this, new.target.prototype)
}
}

function satisfyInternal(actual, expected, path: string) {
if (expected instanceof RegExp && typeof actual === 'string')
expected.test(actual)
Expand Down

0 comments on commit 4d1e797

Please sign in to comment.