Skip to content

Commit

Permalink
Fix tests that were broken during refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
rylnd committed Dec 15, 2020
1 parent a1d2d6a commit 677d444
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ describe('creating signals migrations route', () => {

expect(response.status).toEqual(400);
expect(response.body).toEqual({
message:
'Cannot migrate due to the signals template being out of date. Please visit Detections to automatically update your template, then try again.',
message: expect.stringMatching(
/Cannot migrate due to the signals template being out of date\. Latest version: \[\d+\], template version: \[\d+\]\. Please visit Detections to automatically update your template, then try again\./
),
status_code: 400,
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('finalizing signals migrations', () => {
const response = await server.inject(getFinalizeSignalsMigrationRequest());
expect(response.status).toEqual(200);
expect(response.body).toEqual({
indices: [],
migrations: [],
});
});

Expand All @@ -46,7 +46,7 @@ describe('finalizing signals migrations', () => {
const response = await server.inject(getFinalizeSignalsMigrationRequest());
expect(response.status).toEqual(200);
expect(response.body).toEqual({
indices: [
migrations: [
expect.objectContaining({
id: mockMigrations[0].id,
error: {
Expand Down

0 comments on commit 677d444

Please sign in to comment.