Nito Buendia
a8a6577cd7
Replace parameterized test with different expectations
...
This approach makes it hard to scale and goes against DRY and debuggability vs the previous approach which followed Python parameterized testing, but this was the recommendation of the Jasmine team to keep it consistent with other tests.
Further tests here could be adding other types like Array, Map, WeakMap, Set, WeakSet...
2022-03-17 20:16:22 +08:00
Nito Buendia
1660015c12
Run formatter
2022-03-16 23:01:20 +08:00
Nito Buendia
00fd4a819f
Refactor tests to depend on jasmineUnderTest
2022-03-16 21:48:03 +08:00
Nito Buendia
091cd8c3b6
Remove spyObj setup from test that does not require it
2022-03-16 21:34:28 +08:00
Nito Buendia
aba0c98eb9
Fix unit test to include testValue instead of a constant value
2022-03-16 21:31:40 +08:00
Nito Buendia
a7eff79db0
Simplify test for arguments passed
2022-03-16 21:26:59 +08:00
Nito Buendia
2a5673e6ab
Change jasmine to jasmineUnderTest
2022-03-16 21:20:21 +08:00
Nito Buendia
c13dd26c4b
Change set up to each of the formats
...
This goes against DRY principle, but it was recommended by Jasmine team to reduce coupling between tests.
2022-03-16 21:18:25 +08:00
Nito Buendia
2e8b477489
Change arrow functions with anonymous functions
2022-03-16 21:14:43 +08:00
Nito Buendia
d7d75abc42
Rename spec to include Spec to allow running
2022-03-16 20:14:06 +08:00