Skip to content

Commit

Permalink
test/typescript: add more tests for interface Ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Aug 7, 2023
1 parent e36dd28 commit 5f1ca30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/ts/simple.ts
@@ -1,4 +1,5 @@
import ignore from '../../'
import {Ignore} from '../../'

const equal = (actual, expect, message) => {
if (actual !== expect) {
Expand All @@ -8,7 +9,7 @@ const equal = (actual, expect, message) => {

const paths = ['a', 'a/b', 'foo/bar']

let ig = ignore()
let ig: Ignore = ignore()

ig = ig.add('*')
ig = ig.add(['!*/', '!foo/bar'])
Expand Down

0 comments on commit 5f1ca30

Please sign in to comment.