Skip to content

Commit

Permalink
Fix tests to work with db checks
Browse files Browse the repository at this point in the history
  • Loading branch information
matushorvath committed Nov 17, 2023
1 parent 45b0ef6 commit 25e3424
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration-tests/database.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const db = new DynamoDB({

jest.setTimeout(30 * 1000);

const isValidYear = year => Number(year) === 1980 || (Number(year) >= 2015 && Number(year) <= 2050);
const isValidYear = year => Number(year) === 1980 || Number(year) === 2000 || (Number(year) >= 2015 && Number(year) <= 2050);

Check failure on line 18 in integration-tests/database.test.js

View workflow job for this annotation

GitHub Actions / Build and Test

This line has a length of 125. Maximum allowed is 120

describe('Database consistency', () => {
const data = [];
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/start-times.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const url = 'https://7b79gj2si4.execute-api.eu-central-1.amazonaws.com/Prod/star
describe('POST /start', () => {
const validData = {
version: 1,
year: 2003,
year: 2000,
day: 13,
part: 2,
name: 'TeSt UsEr'
Expand Down

0 comments on commit 25e3424

Please sign in to comment.