Skip to content

Commit 56df09e

Browse files
committed
add chmod assertions
1 parent 6cafc0f commit 56df09e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/commands/configuration-management/config-export.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ describe("Config export", () => {
132132
const loggedResponse = loggingTestTransport.logMessages[0].message.trim();
133133

134134
expect(loggedResponse).toEqual("Successfully exported packages to branch: my-branch");
135+
expect(fs.chmodSync).toHaveBeenCalledWith(expect.stringMatching(/manifest\.json/), 0o600);
136+
expect(fs.chmodSync).toHaveBeenCalledWith(expect.stringMatching(/studio\.json/), 0o600);
137+
expect(fs.chmodSync).toHaveBeenCalledWith(expect.stringMatching(/variables\.json/), 0o600);
135138
})
136139

137140
it("Should export studio file for studio packageKeys and versions", async () => {

0 commit comments

Comments
 (0)