Skip to content

Conversation

addaleax
Copy link
Collaborator

No description provided.


it('completes the db.version method', async() => {
output = '';
input.write('db.vers\u0009\u0009');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just super random thought .. we could have const TAB = "\u0009"; and db.vers${TAB}${TAB} or something .. not a life changing one :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, we already do that for e.g. arrow-up in the other tests. I’ll do that right after merging this.

return collectionNames.filter((name) => name.startsWith(collName));
} catch (err) {
if (err.code === ShellApiErrors.NotConnected) {
if (err.code === ShellApiErrors.NotConnected || err.codeName === 'Unauthorized') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should 'Unauthorized' be also part ShellApiErrors to be consistent with the other?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a shell error, though, it’s a server error :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants