Sean Parmelee
8676bbf11a
fallback on assignment when a spy cannot be deleted
2016-09-01 13:39:25 -05:00
Gregg Van Hove
c7cc3b4a29
Properly tick date along with clock
...
- Specifically when there aren't functions scheduled at the ticks
Fixes #1190
2016-08-31 21:24:01 -07:00
Gregg Van Hove
f196faf0bb
Update anonymous constructor pretty print specs to work in IE
2016-08-25 15:29:32 -07:00
Gregg Van Hove
850204dfb8
Merge branch 'prettyPrintCustomConstructortoString' of https://github.com/mbildner/jasmine into mbildner-prettyPrintCustomConstructortoString
...
- Fixes #1019
- Merges #1099
2016-08-15 15:50:59 -07:00
Gregg Van Hove
b9c25e88b9
Merge branch 'callfake-better-error' of https://github.com/kapke/jasmine into kapke-callfake-better-error
...
- Merges #1059
- Fixes #1016
2016-08-15 09:34:03 -07:00
Ben Christel
227b0c62a3
Make the build pass in ie8
...
- pending() throws an exception in ie8. I have not dug into the root cause.
- iframe.contentWindow.eval() isn't supported in ie8
2016-07-24 21:48:11 -07:00
Ben Christel
cb1001e6c2
De-dup test setup
...
- Move environment-specific tests for toEquals into describe blocks so the check for the environment can be shared
2016-07-21 12:26:43 -07:00
Ben Christel
a0bce8031e
Test comparison of objects from different frames
2016-07-21 12:10:37 -07:00
Ben Christel
738c10fd43
Make toEqual pass for arrays with equivalent properties
...
- Fixes a bug caused by accidental use of a closure variable
2016-07-18 16:48:00 -07:00
Joey Parrish
de7b7c029e
Pass custom testers to asymmetric testers
...
This allows custom equality testers to affect asymmetric matches.
This avoid suprises when combining addCustomEqualityTester with
objectContaining or arrayContaining.
Closes #1138
2016-06-23 14:33:39 -07:00
Pivotal
7a62969a14
createSpyObj may use object for method->response shorthand
...
examples:
```JavaScript
var mySpy = jasmine.createSpyObj("mySpy", { getAge: 55, getLanguage: "JavaScrizzle" });
var age = mySpy.getAge();
expect(age).toEqual(55);
expect(mySpy.getAge).toHaveBeenCalled();
```
Also does:
Add "isObject_" method to utils to make it easier for "createSpy" to support an array or object of stubs
2016-04-25 17:10:22 -04:00
Pivotal
604cd6132f
Prettyprint objects whose constructors have custom toString method
...
- when the constructor has a name, print the name
- when the constructor does not have a name, print `<anonymous>`
[Fixes issue 1019](https://github.com/jasmine/jasmine/issues/1019 )
2016-04-25 14:23:48 -04:00
Fulvio Valente
2710bdfc5e
Correctly pretty print objects from other contexts (e.g. iframes) and which do not override toString
...
Fixes #1087
2016-04-11 18:51:04 +01:00
slackersoft
954a6a0091
Merge branch 'feat/improveErrorMessages' of https://github.com/dhoko/jasmine into dhoko-feat/improveErrorMessages
...
- Merges #1026 from @dhoko
- Fixes #1025
2016-03-18 10:59:31 -07:00
slackersoft
11cfaae42a
Merge branch 'marneborn-bluebird3.0-warnings'
...
- Merges #1062 from @marneborn
- Fixes #992
2016-03-11 09:13:43 -08:00
Erik Welander
927cc011d6
Added support for ES6 sets to toContain and toEqual.
2016-03-04 02:09:59 -08:00
Mikael Arneborn
b578e72c8f
Added failing test for done returning null
2016-03-03 08:54:46 -08:00
dhoko
14067d0785
Improve errors with the domaine and how to use the API
2016-02-29 10:33:45 +01:00
Andrzej Kopeć
bbf3f6825c
Improve error message when passing a non-function to callFake
2016-02-28 21:37:28 +01:00
Gregg Van Hove
dbd198f7d0
Allow expectations in a global beforeAll or afterAll
...
- Report afterAll failures in jasmineDone
- Issue #811
2016-02-25 15:01:47 -08:00
Gregg Van Hove
5583b6f954
Top-level specs should compute fullName the same as Suites
...
- No longer include "Jasmine__TopLevel__Suite"
2016-02-25 14:29:35 -08:00
Andrzej Kopeć
90dea9ab38
Now spies preserve original function arity
2016-02-25 21:43:18 +01:00
Gregg Van Hove
ebbefafc26
Turn the describe error spec back on and update for new code
2016-02-25 10:04:31 -08:00
Gregg Van Hove
b66ffc1277
Merge branch 'spy-inherited-methods' of https://github.com/benchristel/jasmine into benchristel-spy-inherited-methods
...
- Merges #1036
- Fixes #737
2016-02-22 14:11:00 -08:00
Gregg Van Hove
5458f2f18d
Array equality treats undefined elements as equal however they got in there
...
- Fixes #786
2016-02-22 11:06:59 -08:00
Gregg Van Hove
602f5bc08a
Merge branch 'fallback-report' of https://github.com/mauricioborges/jasmine into mauricioborges-fallback-report
...
- Merges #1009
2016-02-22 10:20:48 -08:00
Gregg Van Hove
5bdd7e8fbf
Merge branch 'issue-931-respy' of https://github.com/guy-mograbi-at-gigaspaces/jasmine into guy-mograbi-at-gigaspaces-issue-931-respy
...
- Merges #953
- Fixes #931
2016-02-18 11:40:01 -08:00
Gregg Van Hove
1e0381a495
Update describe error message to no longer assume errant args are done
...
Fixes #896
2016-02-18 09:31:31 -08:00
Patrizio Rullo
b7d8b0de71
Add toBeGreatThanOrEqual and toBeLessThanOrEqual matchers
...
- Implements issue #1013
2016-02-18 00:13:26 +01:00
Gregg Van Hove
342f0eb9a3
Merge branch 'logankd-master'
...
- Support call count of 0 with toHaveBeenCalledTimes matcher
- Merges #1048
- Fixes #994
2016-02-17 10:33:27 -08:00
Kevin Logan
44b56093e7
#1048 - fixed toThrow expectation
2016-02-17 12:16:54 -06:00
Kevin Logan
bee8132848
#1015 - revert formatting and spacing
2016-02-17 12:09:26 -06:00
Kevin Logan
e5c744f3dc
#1015 use isNumber fuction to check for empty expected argument. This will allow 0 to be passed in.
2016-02-17 12:03:06 -06:00
Gregg Van Hove
4fb5aa14b8
Merge branch 'issue1010' of https://github.com/bodawei/jasmine into bodawei-issue1010
...
- Merges #1011
- Fixes #1010
2016-02-16 15:41:42 -08:00
Gregg Van Hove
f38e8e9235
Merge branch 'cloned-args-on-calltracker' of https://github.com/a-r-d/jasmine into a-r-d-cloned-args-on-calltracker
...
- Merges #1000
- Fixes #872
2016-02-16 15:00:49 -08:00
Mauricio Borges Silva
6489b0f400
Add support on Env to provide fallback report
2016-02-15 23:12:05 -02:00
Mauricio Borges Silva
5e3582d8e7
Add support to fallback report providing on ReportDispatcher
2016-02-15 23:12:05 -02:00
Ben Christel
d6f1f8dec5
Correctly teardown spies on inherited methods
...
- If the spied method is not an own property of the object being spied
upon, the method is deleted from the object on teardown instead of
being set to the original implementation.
- #737
2016-02-01 17:45:47 -08:00
DJ Burrowes
65241565c5
Reverse order that spies are cleared up.
...
Fixes #1010
2016-01-03 19:14:57 -08:00
Gregg Van Hove
17c5e2b10d
Merge branch 'fix-clock-date' of https://github.com/andrewiggins/jasmine into andrewiggins-fix-clock-date
...
Fixes #915
Merges #980
2015-12-22 15:18:58 -08:00
Aaron DEcker
3e91ac0889
add option to shallow clone args in call tracker
2015-12-22 00:27:51 -05:00
Gregg Van Hove
79206ccff5
Rename j$ to jasmineUnderTest for specs
...
- Clarifies what it is for when writing tests
- No longer named the same as the `jasmine` that is injected into live
code
2015-12-03 17:23:32 -08:00
Gregg Van Hove
e2e2d1b343
Revert #908
...
- Run `afterEach` in reverse order declared as before
2015-12-03 16:02:32 -08:00
Andre Wiggins
c8b212f278
make DelayedFunctionScheduler update the mockDate
2015-11-20 03:45:57 -08:00
Gregg Van Hove
c1ab3c9cbe
Add support for returning run details for reporting randomness
...
[#92249258 ]
2015-11-04 12:05:29 -08:00
Gregg Van Hove
0f6a7f04b3
Merge branch 'issue#896' of https://github.com/himajasuman/jasmine into himajasuman-issue#896
2015-10-27 14:12:31 -07:00
Gregg Van Hove
25d73515f3
Merge branch 'to-throw-error-unused-param' of https://github.com/FuzzySockets/jasmine into FuzzySockets-to-throw-error-unused-param
2015-10-27 12:21:42 -07:00
Gregg Van Hove
ea4c44904d
IE 8 doesn't support defineProperty on non-DOM nodes, skip that kindof thing
2015-10-26 17:41:30 -07:00
Richard Harrington
c2ae3b6b12
Remove unused parameter from toThrowError
2015-10-26 11:43:31 -04:00
Himaja
110cacab19
Added a throw error block in describe incase a function with arguments is passed in describe
2015-10-25 14:13:14 -04:00