Steve Gravrock
434575f49d
Use one declaration per statement
...
The old style of merging all of a function's variable declarations into
a single statement made some sense back in the days of var, but there's
no reason to keep doing it now that we use const and let.
2026-03-11 06:30:46 -07:00
Steve Gravrock
f5e9b61f73
Replace isArray helper with native Array.isArray
2025-11-28 08:09:51 -08:00
Steve Gravrock
168ff0a751
Move private APIs to private namespace
...
Fixes #2078
2025-09-27 13:21:09 -07:00
Steve Gravrock
2d07b3e6d7
Removed protections against user code redefining undefined
...
Jasmine hasn't even run on platforms that allowed redefining undefined
since 2.x.
2025-06-22 12:23:18 -07:00
Steve Gravrock
9a27407d35
Folded util.objectDifference into MatchersUtil
...
This was always an implementation detail of objectKeysAreDifferentFormatter,
and didn't really do what its name suggested.
* #1966
2022-05-07 14:03:26 -07:00
Steve Gravrock
468e9577cd
Include symbol properties in matcher diffs
...
* #1966
2022-05-07 13:26:15 -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
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
Steve Gravrock
fe0a83ba87
Removed support for Internet Explorer
2021-07-23 21:46:15 -07:00
Steve Gravrock
4e2f703615
Check for syntax and standard library objects that don't work in IE
2020-07-01 17:34:59 -07:00
Gregg Van Hove
b4cbe9850f
add prettier and eslint
2019-05-21 18:23:48 -07:00
Cody Mikol
591bf1144b
bugfix(assertAsync): add promiseLike support for angularJS promises
...
implement a promiseLike method so libraries using non-browser promise
implementations can still utilize assertAsync functionality.
Fixes : #1612
2018-10-18 21:28:32 -04:00
Steve Gravrock
98ead94c51
Fixed spec failure on Chrome
2017-12-01 08:28:55 -08:00
Steve Gravrock
5906a2c05c
Filter Jasmine frames from stack traces
...
[Finishes #2644992 ]
2017-11-13 15:49:01 -08:00
Steve Gravrock
419470e9df
Removed support for IE <10
...
[#150527985 ]
2017-11-08 08:30:22 -08:00
Ben Christel
d5e6bf47ed
Make toEqual matcher report the difference between objects
...
- Mismatches deep within object/array structures are pinpointed with a JsonPath-like syntax.
2016-11-14 22:08:34 -08:00
Gregg Van Hove
5a76e59d5b
Merge branch 'spyOnProperty2' of https://github.com/celluj34/jasmine into celluj34-spyOnProperty2
...
- Merges #1203 from @celluj34
- Merges #1008 from @smacker
- Fixes #943
2016-11-04 14:36:56 -07:00
Sukharev Maxim
56191cfb2e
Implement spies for get/set functions on accessor properties
2016-09-12 18:22:58 -05: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
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 and Tim Jarratt
1c19b8e38a
Move spec files back out of spec/javascripts
...
- Jasmine gem allows us to specify a path to jasmine.yml via ENV
[finish #58126010 ]
2013-10-02 16:32:35 -07:00
Gregg Van Hove and Rajan Agaskar
5017d1a4f1
Make rake jasmine:ci run specs correctly.
...
- Will replace rake core_specs.
- Remove obsolete dependencies & files -- most of these were for build tasks we
are no longer using. Notably, rspec and spec_helper were deleted.
2013-09-25 10:11:02 -07:00
Davis W. Frank
aca43bd3a3
Squashed commit of work to make Jasmine a collection of isolated modules. Note now that in our test suite, "jasmine" now always refers to the build jasmine loaded from jasmine.js and "j$" always refers to the code in the src directories.
...
Also, dev_boot.js is now a copy of boot.js and has additional changes to load jasmine the second time, into the j$ reference.
2013-05-28 14:09:20 -07:00
Dan Hansen and Davis W. Frank
cf7bb0269b
Added grunt to project.
...
Move from embedded "fork" of jsHint to using grunt's jsHint module.
Cleaned ALL jsHint errors.
Added jasmine.util.isUndefined as alternative to extra careful protection against undefined clobbering
2013-03-01 14:28:18 -08:00
Davis W. Frank
668dd784ef
Remove jasmine.util.extend
2012-12-08 11:48:11 -08:00
Davis W. Frank
86b095e5a4
Src & Spec dirs now have same structure; console/, core/, and html/
2011-06-08 18:30:35 -07:00