Skip to content

Commit

Permalink
nodejs: port Matcher test to harness
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <[email protected]>
  • Loading branch information
hdonnay committed Aug 27, 2024
1 parent 9773352 commit c2fc225
Show file tree
Hide file tree
Showing 5 changed files with 632 additions and 502 deletions.
110 changes: 0 additions & 110 deletions nodejs/matcher_integration_test.go

This file was deleted.

15 changes: 15 additions & 0 deletions nodejs/matcher_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package nodejs

import (
"context"
"testing"

"github.com/quay/zlog"

"github.com/quay/claircore/test"
)

func TestMatcher(t *testing.T) {
t.Parallel()
test.RunMatcherTests(zlog.Test(context.Background(), t), t, "testdata/matcher", new(Matcher))
}
1 change: 1 addition & 0 deletions nodejs/packagescanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
)

func TestScanLocal(t *testing.T) {
t.Parallel()
ctx, done := context.WithCancel(context.Background())
defer done()

Expand Down
Loading

0 comments on commit c2fc225

Please sign in to comment.