Skip to content

Commit c5043e3

Browse files
author
Prince Tripathi
committed
fix: updated test case
1 parent 0839765 commit c5043e3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

sample-test-repo/tests/test.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,9 @@ EOF
836836
run_test "bun.lock: BLOCK one bad in many" "$SENTINEL_CMD scan $TEST_DIR/mixed-bun.lock $BL --logMode=quiet" 1
837837

838838
# bun.lock with JSONC comments
839-
cat > "$TEST_DIR/jsonc-bun.lock" << 'EOF'
839+
mkdir -p "$TEST_DIR/jsonc-bun"
840+
echo '{"name":"test"}' > "$TEST_DIR/jsonc-bun/package.json"
841+
cat > "$TEST_DIR/jsonc-bun/bun.lock" << 'EOF'
840842
{
841843
// This is a comment
842844
"lockfileVersion": 0,
@@ -845,7 +847,7 @@ cat > "$TEST_DIR/jsonc-bun.lock" << 'EOF'
845847
}
846848
}
847849
EOF
848-
run_test "bun.lock: JSONC with comments" "$SENTINEL_CMD scan $TEST_DIR/jsonc-bun.lock $BL --logMode=quiet" 0
850+
run_test "bun.lock: JSONC with comments" "$SENTINEL_CMD scan $TEST_DIR/jsonc-bun $BL --logMode=quiet" 0
849851

850852
# ╔══════════════════════════════════════════════════════════════════════════════════╗
851853
# ║ SECTION 9: SCAN DIRECTORIES ║

0 commit comments

Comments
 (0)