-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(tests): noteList.test #95
Conversation
*added test added for /notes of one user *added insertUserSessions function *added json file for insertUserSessions function *added notes to notes.json (now 50) with one user_id *renamed notes-settings to camelcase notesSettings now
headers: { | ||
authorization: `Bearer ${access_token}`, | ||
}, | ||
url: '/notes/&page=3', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
url: '/notes/&page=3', | |
url: '/notes/?page=3', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move "3" to a constant please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
expect(body).toHaveLength(portionSize); | ||
}); | ||
|
||
test('Returns noteList with no items if page*portionSize > numberOfNotes', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to write with normal sentences
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
expect(response?.statusCode).toBe(expextedStatus); | ||
}); | ||
|
||
test('Returns 400 when page > 0', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test('Returns 400 when page > 0', async () => { | |
test('Returns 400 when page is too large', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
- fixed comments logic - trying to fix directoru error
chore: move bis-logic from ui do domain, decouple domains
fixed sql syntax
fixed sql syntax
changed variable name
feat(editor-tools): default tools added to user tools, global "underscore" options in models
On pull/push: run build check, eslint check, tests. On push to main additionally deploy.
- trying to fix test problem with auth
- deleted error for tests throw - lint fixes
Divided enlist and build-push action to 2 separated actions
New data for tests were added to the test database
url for a fake request define using the find method
fix implicit arrange
Quickfix: added synchronize trigger on PR to actions
- noteList test logic fixed (authorization for specific user needed)
Fix multiple run of github action
Need to decide what to do with the note creator.
Removed 1 test case for 406
Tests for get note by id
- new Globally exposed method for creating accessToken using id (global.auth)
- added description of global.auth method into readme
- renamed variable from id to userId - typo fixed
feat(tests) : auth method added
- authtorization with global.auth instead of fake request function - data variables renamed to camelCase - solved conflicts in test data
/notes
of one usernotesSettings now