diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4f80fd..4acd68c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,8 @@ name: Continous integration on: push: branches: - - '*' + - main + pull_request: jobs: checkout: diff --git a/libs/bunny-storage/tests/__snapshots__/integration.test.ts.snap b/libs/bunny-storage/tests/__snapshots__/integration.test.ts.snap index fd3ce9c..ace6c01 100644 --- a/libs/bunny-storage/tests/__snapshots__/integration.test.ts.snap +++ b/libs/bunny-storage/tests/__snapshots__/integration.test.ts.snap @@ -1,7 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Integration test with Storage Create Fail to create a proper file with invalid checksum: invalid_fail_file_1 1`] = `[Error: Unable to upload file. Either invalid path specified, either provided checksum invalid]`; - exports[`Integration test with Storage List The list should be a single tests forlder 1`] = ` [ "tests", diff --git a/libs/bunny-storage/tests/integration.test.ts b/libs/bunny-storage/tests/integration.test.ts index d95d995..08b49f9 100644 --- a/libs/bunny-storage/tests/integration.test.ts +++ b/libs/bunny-storage/tests/integration.test.ts @@ -126,7 +126,8 @@ describe('Integration test with Storage', () => { // Should not be here. expect(false).toBeTruthy(); } catch (e) { - expect(e).toMatchSnapshot("invalid_fail_file_1"); + expect(e).toBeInstanceOf(Error); + expect((e as Error).message).toContain("invalid path or checksum"); } let list = await BunnyStorageSDK.file.list(sz, generation_id);