Skip to content

Commit

Permalink
Replaced var with const in API doc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sgravrock committed Sep 24, 2022
1 parent 4cd190b commit 4c13c2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/jasmine-core/jasmine.js
Original file line number Diff line number Diff line change
Expand Up @@ -5241,7 +5241,7 @@ getJasmineRequireObj().MatchersUtil = function(j$) {
* };
* }
*
* var actual = {
* const actual = {
* n: 2,
* otherFields: "don't care"
* };
Expand Down Expand Up @@ -6387,7 +6387,7 @@ getJasmineRequireObj().toHaveClass = function(j$) {
* @since 3.0.0
* @param {Object} expected - The class name to test for
* @example
* var el = document.createElement('div');
* const el = document.createElement('div');
* el.className = 'foo bar baz';
* expect(el).toHaveClass('bar');
*/
Expand Down
2 changes: 1 addition & 1 deletion src/core/matchers/matchersUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ getJasmineRequireObj().MatchersUtil = function(j$) {
* };
* }
*
* var actual = {
* const actual = {
* n: 2,
* otherFields: "don't care"
* };
Expand Down
2 changes: 1 addition & 1 deletion src/core/matchers/toHaveClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ getJasmineRequireObj().toHaveClass = function(j$) {
* @since 3.0.0
* @param {Object} expected - The class name to test for
* @example
* var el = document.createElement('div');
* const el = document.createElement('div');
* el.className = 'foo bar baz';
* expect(el).toHaveClass('bar');
*/
Expand Down

0 comments on commit 4c13c2b

Please sign in to comment.