Commit 2926fd2
test: fix mkdtemp assertion to match current call signature
The assertion in the "should successfully persist modules" test was
checking that mkdtemp was called with "snyk", which was the argument
before PR #779 switched to path.join(os.tmpdir(), "snyk-"). The test
was added in PR #788 after #779 had already landed, so it was born
broken.
Fix: import os and update the toHaveBeenCalledWith arg to
path.join(os.tmpdir(), "snyk-") so it matches what the source
actually passes at runtime.
1 parent d1b4dfb commit 2926fd2
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | | - | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
0 commit comments