This commit is contained in:
Shreyas Goenka 2023-05-22 10:48:32 +02:00
parent 8a9e59df3e
commit 89d02cda6b
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 2 additions and 3 deletions

View File

@ -24,7 +24,7 @@ func TestMaterializeEmptyDirsAreNotGenerated(t *testing.T) {
tmp := setupConfig(t, ` tmp := setupConfig(t, `
{ {
"a": "dir-with-file", "a": "dir-with-file",
"b": "empty-dir", "b": "foo",
"c": "dir-with-skipped-file", "c": "dir-with-skipped-file",
"d": "skipping" "d": "skipping"
}`) }`)
@ -39,7 +39,7 @@ func TestMaterializeEmptyDirsAreNotGenerated(t *testing.T) {
tmp2 := setupConfig(t, ` tmp2 := setupConfig(t, `
{ {
"a": "dir-with-file", "a": "dir-with-file",
"b": "empty-dir", "b": "foo",
"c": "dir-not-skipped-this-time", "c": "dir-not-skipped-this-time",
"d": "not-skipping" "d": "not-skipping"
}`) }`)
@ -48,7 +48,6 @@ func TestMaterializeEmptyDirsAreNotGenerated(t *testing.T) {
assert.DirExists(t, filepath.Join(tmp2, "dir-with-file")) assert.DirExists(t, filepath.Join(tmp2, "dir-with-file"))
assert.FileExists(t, filepath.Join(tmp2, "dir-with-file/.gitkeep")) assert.FileExists(t, filepath.Join(tmp2, "dir-with-file/.gitkeep"))
assert.NoDirExists(t, filepath.Join(tmp2, "empty-dir"))
assert.DirExists(t, filepath.Join(tmp2, "dir-not-skipped-this-time")) assert.DirExists(t, filepath.Join(tmp2, "dir-not-skipped-this-time"))
assert.FileExists(t, filepath.Join(tmp2, "dir-not-skipped-this-time/foo")) assert.FileExists(t, filepath.Join(tmp2, "dir-not-skipped-this-time/foo"))
} }