Skip to content

Commit

Permalink
fix: testing file path
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKreil committed Feb 20, 2024
1 parent 7db0fef commit e8fbb55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/frontend.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Frontend class', () => {
await frontend.saveAsTarGz(projectFolder);

expect(createWriteStream).toHaveBeenCalledTimes(1);
expect(createWriteStream).toHaveBeenCalledWith('/Users/michaelkreil/Projekte/versatiles/versatiles-frontend/frontend.tar.gz');
expect(createWriteStream.mock.calls[0][0]).toMatch(/\/versatiles-frontend\/frontend\.tar\.gz$/);
});

it('should create brotli tarball', async () => {
Expand All @@ -46,7 +46,7 @@ describe('Frontend class', () => {
await frontend.saveAsBrTar(projectFolder);

expect(createWriteStream).toHaveBeenCalledTimes(1);
expect(createWriteStream).toHaveBeenCalledWith('/Users/michaelkreil/Projekte/versatiles/versatiles-frontend/frontend.br.tar');
expect(createWriteStream.mock.calls[0][0]).toMatch(/\/versatiles-frontend\/frontend\.br\.tar$/);
});

it('loads frontend configurations correctly', () => {
Expand Down

0 comments on commit e8fbb55

Please sign in to comment.