Skip to content

PR for Error services - Dan Stineback#1

Open
dstineback wants to merge 5 commits into
sea-401d5-javascript:masterfrom
dstineback:master
Open

PR for Error services - Dan Stineback#1
dstineback wants to merge 5 commits into
sea-401d5-javascript:masterfrom
dstineback:master

Conversation

@dstineback
Copy link
Copy Markdown

PR for Dan Stineback

expect(typeof errorService.logErorr).toBe('function');
});
it('should test errors', () => {
expect(Array.isArray(errorService.getErrors())).toBe(true);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would be good to test logging an error and retrieving result, like
errorService.logError('test error')({});
let errorArray = errorService.getErrors();
expect(errorArray[0]).toBe('test error');

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