Skip to content

Commit

Permalink
test(docs-infra): simplify EventsComponent tests and add more test …
Browse files Browse the repository at this point in the history
…cases (#36517)

This commit simplifies the tests of `EventsComponent` (by introducing a
`createMockEvent()` helper and getting rid of the irrelevant `Event`
fields) and adds tests for some more usecases. It also makes the tests
more robust by using Jasmine's `Clock` to mock the current date.

PR Close #36517
  • Loading branch information
gkalpak authored and AndrewKushnir committed Sep 16, 2020
1 parent e43c701 commit 234e5af
Show file tree
Hide file tree
Showing 2 changed files with 183 additions and 249 deletions.

0 comments on commit 234e5af

Please sign in to comment.