Skip to content

Commit

Permalink
Add a test case
Browse files Browse the repository at this point in the history
Signed-off-by: Joffref <mariusjoffre@gmail.com>
  • Loading branch information
Joffref authored and philipaconrad committed Jul 13, 2022
1 parent 039de57 commit d4aabef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bundle/bundle_test.go
Expand Up @@ -186,6 +186,7 @@ func testReadBundle(t *testing.T, baseDir string) {
{"/a/b/c/data.json", "[1,2,3]"},
{"/a/b/d/data.json", "true"},
{"/a/b/y/data.yaml", `foo: 1`},
{"/a/b/g/data.yml", "1"},
{"/example/example.rego", `package example`},
{"/policy.wasm", `legacy-wasm-module`},
{wasmResolverPath, `wasm-module`},
Expand Down Expand Up @@ -218,6 +219,7 @@ func testReadBundle(t *testing.T, baseDir string) {
"b": map[string]interface{}{
"c": []interface{}{json.Number("1"), json.Number("2"), json.Number("3")},
"d": true,
"g": json.Number("1"),
"y": map[string]interface{}{
"foo": json.Number("1"),
},
Expand Down

0 comments on commit d4aabef

Please sign in to comment.