Olle Jonsson
d68b47b76d
Gemspec: Drop EOL'd property rubyforge_project
2019-07-14 10:38:36 +02:00
Steve Gravrock
c100bb6242
Made output of toHaveBeenCalledWith more readable
...
This breaks each call out onto its own line, so that it's much easier to
see where each call starts and how they differ. E.g. previously the output
would be:
Expected spy foo to have been called with [ 'bar', 'baz', 'qux' ] but actual calls were [ [ 42, 'wibble' ], [ 'bar' 'qux' ], [ 'grault '] ]
Now it's:
Expected spy foo to have been called with:
[ 'bar', 'baz', 'qux' ]
but actual calls were:
[ 42, 'wibble' ],
[ 'bar' 'qux' ],
[ 'grault '].
2019-07-13 10:37:05 -07:00
Gregg Van Hove
c37e9b9db0
Add saucelabs badge to readme
2019-07-07 19:37:09 -07:00
Gregg Van Hove
5e87e1410d
update to newer jasmine-browser-runner
2019-07-07 19:20:45 -07:00
Gregg Van Hove
0cd5d9339b
Use node 10 for browser based builds
2019-07-07 19:01:36 -07:00
Gregg Van Hove
066162d6bc
Merge branch 'enelson/spyobjproperty' of https://github.com/elliot-nelson/jasmine into elliot-nelson-enelson/spyobjproperty
...
- Merges #1722 from @elliot-nelson
- Closes #1569
- Fixes #1442
2019-06-25 16:26:43 -07:00
Gregg Van Hove
ab01fa1978
Merge pull request #1721 from elliot-nelson/enelson/gitattributes
...
Fix: don't attempt to normalize PNGs (gitattributes)
2019-06-24 16:16:37 -07:00
Elliot Nelson
65e6df55ee
Linting fixes
2019-06-20 07:34:31 -04:00
Elliot Nelson
45475f6d1e
Allow users to pass property names to createSpyObj
2019-06-20 07:33:10 -04:00
Elliot Nelson
a536ca19f2
Don't attempt to normalize PNGs
2019-06-20 06:46:51 -04:00
Gregg Van Hove
9a6262e3cd
bump browser runner to new version
2019-06-14 16:42:10 -07:00
Gregg Van Hove
e7d0d742a8
only turn on sauce_connect for jobs that need it (I think)
2019-06-14 15:43:14 -07:00
Gregg Van Hove
031515db23
rejigger travis again to not run sauce jobs for PRs
2019-06-14 15:27:24 -07:00
Gregg Van Hove
49fd22ffe6
move everything we can into the env matrix for travis
2019-06-14 15:15:29 -07:00
Gregg Van Hove
5c058b5bc4
Don't include node 10 & 12 in matrix, we're explicit later
2019-06-14 15:11:41 -07:00
Gregg Van Hove
18dbbca436
Refactor travis matrix to compress a bit more
2019-06-14 15:10:16 -07:00
Gregg Van Hove
3e888105f0
Calculate total suite run time inside the env and report in jasmineDone
2019-06-14 14:59:33 -07:00
Gregg Van Hove
15f969bee7
Add @since to most JSDoc comments
...
- See jasmine/jasmine.github.io#117
2019-06-12 16:23:12 -07:00
Gregg Van Hove
984018bfdf
Make no expectations in HTML Reporter message a warning
...
- Fixes #1704
2019-06-12 13:31:25 -07:00
Gregg Van Hove
0f4e53d0e6
Update ci script to pass linting
2019-06-12 12:15:34 -07:00
Gregg Van Hove
c73c5a9dbd
WIP
2019-06-12 11:42:47 -07:00
Gregg Van Hove
243adfd4ce
Use jasmine-browser-runner to execute browser tests
2019-06-12 11:33:14 -07:00
Gregg Van Hove
d610d0bdad
Use browser-runner to start server in CI
2019-06-06 14:46:19 -07:00
Gregg Van Hove
0644731680
Switch to using new jasmine-browser-runner to server files for local testing
2019-06-06 14:07:30 -07:00
Gregg Van Hove
8da1fd1ed1
Merge branch 'master' of https://github.com/pixelpax/jasmine into pixelpax-master
...
- Merges #1713 from @pixelpax
2019-05-30 17:47:16 -07:00
Gregg Van Hove
8af669677a
Cleanup spy promise strategies to be more consistent with Jasmine at large
...
- Rename `resolveWith` to `resolveTo` to match `toBeResolvedTo`
- No longer wrap non-Errors in `rejectWith`
- Fixes #1715
2019-05-23 17:29:12 -07:00
Gregg Van Hove
b4cbe9850f
add prettier and eslint
2019-05-21 18:23:48 -07:00
Gregg Van Hove
cf2c5c9acc
Merge branch 'enelson/src-cleanup-2' of https://github.com/elliot-nelson/jasmine into elliot-nelson-enelson/src-cleanup-2
...
- Merges #1708 from @elliot-nelson
2019-05-21 17:45:46 -07:00
Gabriel Elkind
4e10cf84d5
Adds in the source-- whoops!
2019-05-20 23:51:29 -05:00
Gregg Van Hove
9f875ce666
Older versions don't support const, use var
2019-05-20 17:56:27 -07:00
Gregg Van Hove
df6a71e37d
Merge branch 'spy-to-string' of https://github.com/johnjbarton/jasmine into johnjbarton-spy-to-string
...
- Merges #1712 from @johnjbarton
2019-05-20 17:22:05 -07:00
Gregg Van Hove
32a3288c9d
Merge branch 'elliot-nelson-enelson/pp'
2019-05-20 17:18:29 -07:00
Gregg Van Hove
b12981a3e7
build dist for rounding fix
2019-05-20 17:17:55 -07:00
Gregg Van Hove
cbbdd360f8
Merge branch 'enelson/pp' of https://github.com/elliot-nelson/jasmine into elliot-nelson-enelson/pp
...
- Merges #1711 from @elliot-nelson
- Closes #1700
- Closes #1575
2019-05-20 17:13:41 -07:00
Gregg Van Hove
3a89cc92fb
Merge branch 'paulvanbrenk-fix-1695'
...
- Merges #1710 from @paulvanbrenk
- Fixes #1695
2019-05-20 17:10:39 -07:00
Gabriel Elkind
88c8c905ba
Adds width to root level html-reporter class
2019-05-20 15:25:38 -05:00
johnjbarton
d1adbdc72b
fix(PrettyPrint): jasmine.createSpyObj('obj', ['toString']);
...
The PrettyPrint handler for scalars uses toString() but if that method
has been spyed on, then the stringify fails with
TypeError: Cannot read property 'length' of undefined.
By hanlding this case earlier in format() we avoid the error.
Add unit test covering this case.
2019-05-20 09:33:47 -07:00
Elliot Nelson
8225bb935f
Explicitly test pretty printing objects with nested invalid toString
2019-05-20 09:09:07 -04:00
Elliot Nelson
9f704b6f3a
PrettyPrinter handles objects with invalid toString implementations
2019-05-20 09:01:10 -04:00
Paul van Brenk
69a7449e50
Fix toBeCloseTo matcher for Node.js 12 and Chrome 74
2019-05-19 12:46:32 -04:00
Elliot Nelson
b1da6e3960
Cleanup: unused vars, dangling commas, negation
2019-05-18 08:11:47 -04:00
Elliot Nelson
1e855aa9b8
Cleanup: whitespace
2019-05-18 08:10:11 -04:00
Gregg Van Hove
e04d3d8a62
Fix bad merge for spyOnProperty error message
2019-05-17 17:07:47 -07:00
Gregg Van Hove
06814769c6
Merge branch 'enelson/spyregerrors' of https://github.com/elliot-nelson/jasmine into elliot-nelson-enelson/spyregerrors
...
- Merges #1706 from @elliot-nelson
2019-05-17 16:44:26 -07:00
Gregg Van Hove
309e6df8fd
Use Object.create to make an object with null prototype
2019-05-17 16:31:15 -07:00
Gregg Van Hove
ea1bac5b74
Merge branch 'enelson/spyonproperty' of https://github.com/elliot-nelson/jasmine into elliot-nelson-enelson/spyonproperty
...
- Merges #1705 from @elliot-nelson
2019-05-17 16:21:17 -07:00
Elliot Nelson
befb8995e6
spyOnProperty jasmine-style error messages with usage note
2019-05-17 12:02:44 -04:00
Elliot Nelson
1e13039478
spyOnProperty respects the allowRespy flag
2019-05-17 11:43:22 -04:00
Gregg Van Hove
11b0d95a7d
Merge branch 'enelson/toBeInstanceOf' of https://github.com/elliot-nelson/jasmine into elliot-nelson-enelson/toBeInstanceOf
...
- Merges #1697 from @elliot-nelson
2019-05-16 17:35:09 -07:00
Gregg Van Hove
95f6ba5fa2
Merge branch 'elliot-nelson-enelson/ci-errors'
2019-05-15 17:54:50 -07:00