Steve Gravrock
468e9577cd
Include symbol properties in matcher diffs
...
* #1966
2022-05-07 13:26:15 -07:00
Steve Gravrock
9d80377fe3
Fixed exception when comparing arrays with Symbol keys
...
* Fixes #1966
2022-05-07 10:42:29 -07:00
Steve Gravrock
270344bd38
Include symbol keys when pretty-printing objects
...
* Fixes #1966
2022-05-07 10:05:18 -07:00
Steve Gravrock
694375e4ea
Added Node 18 to CI matrix
2022-04-23 12:39:44 -07:00
Steve Gravrock
1166d10e43
Use const/let in specs, not var
2022-04-16 13:41:44 -07:00
Steve Gravrock
482dc883eb
Check for unused vars and params in specs
2022-04-16 10:58:25 -07:00
Steve Gravrock
364cf35474
Fixed shared example for describe-like fns
2022-04-16 10:26:07 -07:00
Steve Gravrock
2e8732f30f
Added supported envs to 4.1.0 release notes
2022-04-11 21:08:07 -07:00
Steve Gravrock
04133264e0
Bump version to 4.1.0
2022-04-11 20:24:42 -07:00
Steve Gravrock
d2bf6062cb
README updates
...
* Replaced redundant installation instructions with link to docs
* Added links to usage instructions
* Fixes #1941
2022-04-09 11:20:54 -07:00
Steve Gravrock
fb639d0f55
toBeCloseTo treats Infinity and -Infinity as close to themselves
...
* Fixes #1957
2022-04-09 11:14:24 -07:00
Steve Gravrock
52b1a3a7f8
Merge branch 'refactor/rm-deprecated-substr' of https://github.com/CommanderRoot/jasmine
...
* Merges #1962 from @CommanderRoot
2022-04-02 10:32:59 -07:00
Steve Gravrock
1f7880ee8c
Updated Sauce Connect
2022-03-29 20:57:49 -07:00
Steve Gravrock
a6e1aef8d7
Added debug logging to flaky spec
2022-03-29 20:57:49 -07:00
Steve Gravrock
d2815982ce
Removed obsolete vendor-specific background-size rules
...
* Fixes #1961
2022-03-29 07:20:02 -07:00
Tobias Speicher
aa979277fb
refactor: replace deprecated String.prototype.substr()
...
.substr() is deprecated so we replace it with functions which work similarily but aren't deprecated
Signed-off-by: Tobias Speicher <rootcommander@gmail.com >
2022-03-25 16:03:46 +01:00
Steve Gravrock
1e0c312f9f
Merge branch 'main' of https://github.com/nitobuendia/jasmine
...
* Adds toHaveSpyInteractions matcher
* Merges #1959 from @nitobuenida
* Fixes #1568
2022-03-18 11:10:39 -07:00
Nito Buendia
c5db939886
Run cleanup
2022-03-17 21:09:14 +08:00
Nito Buendia
e470fb56d7
Refactor error message to account for negate comparisons
...
The message return on negate clause was not expected. This makes it negative to match expectation. This also add tests for the change, and renames some tests to make it more clear.
2022-03-17 21:06:51 +08:00
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
faf210ab4c
Remove dependency on matchersUtil for test
2022-03-16 23:00:27 +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
b2c2e08641
Remove @since tag from JSDoc
2022-03-16 20:15:09 +08:00
Nito Buendia
d7d75abc42
Rename spec to include Spec to allow running
2022-03-16 20:14:06 +08:00
Nito Buendia
0b71d0a2a0
Merge branch 'jasmine:main' into main
2022-03-16 20:09:19 +08:00
Steve Gravrock
dfa5b6a53d
Pretty-print [new String("")] as "[ '' ]" not "[]"
2022-03-14 18:47:23 -07:00
Steve Gravrock
7f75f23e5b
Use new Circle CI images
...
The old images are deprecated:
<https://discuss.circleci.com/t/legacy-convenience-image-deprecation/41034 >
2022-03-09 13:05:34 -08:00
Steve Gravrock
502cb24bb8
Merge branch '4.0.1'
2022-02-21 17:08:11 -08:00
Steve Gravrock
0ae234dc6e
Bump version to 4.0.1
2022-02-21 16:58:32 -08:00
Steve Gravrock
38d102f1d1
Merge branch '3.99.1' into 4.0.1
2022-02-21 16:45:34 -08:00
Steve Gravrock
906f37fe52
Bump version to 3.99.1
2022-02-21 16:30:15 -08:00
Steve Gravrock
4a2b10998a
Remove Safari 8 and 9 from CI matrix
...
These browsers are still nominally supported by Jasmine 3.x, but they no
longer work on Saucelabs.
2022-02-19 14:23:02 -08:00
Steve Gravrock
d8b2efe4d6
Downgrade jasmine-browser-runner for compatibility with IE
2022-02-19 14:21:35 -08:00
Steve Gravrock
9d9e8f0c17
Lint fixes
2022-02-19 12:33:19 -08:00
Steve Gravrock
4059ab7ba6
Don't report a deprecation when a promise is resolved to something
...
beforeEach(() => somePromiseReturningFn()) is likely a common idiom
and we don't want to treat it as an error.
* Fixes #1958
2022-02-19 12:28:47 -08:00
Nito Buendia
7b01003d0b
Add specs for the new toHaveSpyInteractions matcher
2022-02-16 21:11:42 +08:00
Nito Buendia
8e85f3df74
Create toHaveSpyInteractions matcher
...
This matcher checks all the properties of a given spy object and checks whether at least one of the spies has been called. It returns true if one or more of the spies of the spy object has been called and false otherwise.
2022-02-16 21:10:31 +08:00
Steve Gravrock
b0034797fe
Merge branch 'fix-save-args-by-value' of https://github.com/coyoteecd/jasmine
...
* Fixes cloning of Date objects in saveArgumentsByValue()
* Merges #1955 from @coyoteecd
* Fixes #1885
2022-02-02 21:18:38 -08:00
Dan Cortel
83e9f88952
Make saveArgumentsByValue clone Date objects correctly
...
* Fixes #1885
2022-01-26 18:32:05 +02:00
Gwendolyn Van Hove
de13b47809
Update maintainers list
2022-01-20 15:57:48 -08:00
Steve Gravrock
9e10743a1c
Include the name of the suite in the empty suite error message
2022-01-17 15:08:56 -08:00
Steve Gravrock
5327157832
Always run formerly flaky specs
2022-01-17 14:54:21 -08:00
Steve Gravrock
6e3128c792
Merge branch 'SymboltoEqual' of https://github.com/laeleoni/jasmine
...
* Merges #1879 from @laeleoni
* Fixes #1879
2022-01-15 11:44:53 -08:00