jasmine-core 4.6.0 → 4.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/MIT.LICENSE CHANGED
@@ -1,4 +1,5 @@
1
1
  Copyright (c) 2008-2019 Pivotal Labs
2
+ Copyright (c) 2008-2023 The Jasmine developers
2
3
 
3
4
  Permission is hereby granted, free of charge, to any person obtaining
4
5
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -58,4 +58,6 @@ To find out what environments work with a particular Jasmine release, see the [r
58
58
  * [Christian Williams](mailto:antixian666@gmail.com)
59
59
  * Sheel Choksi
60
60
 
61
- Copyright (c) 2008-2022 Jasmine Maintainers. This software is licensed under the [MIT License](https://github.com/jasmine/jasmine/blob/main/MIT.LICENSE).
61
+ Copyright (c) 2008-2019 Pivotal Labs<br>
62
+ Copyright (c) 2008-2024 The Jasmine developers<br>
63
+ This software is licensed under the [MIT License](https://github.com/jasmine/jasmine/blob/main/LICENSE).
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2008-2023 Pivotal Labs
2
+ Copyright (c) 2008-2019 Pivotal Labs
3
+ Copyright (c) 2008-2024 The Jasmine developers
3
4
 
4
5
  Permission is hereby granted, free of charge, to any person obtaining
5
6
  a copy of this software and associated documentation files (the
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2008-2023 Pivotal Labs
2
+ Copyright (c) 2008-2019 Pivotal Labs
3
+ Copyright (c) 2008-2024 The Jasmine developers
3
4
 
4
5
  Permission is hereby granted, free of charge, to any person obtaining
5
6
  a copy of this software and associated documentation files (the
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2008-2023 Pivotal Labs
2
+ Copyright (c) 2008-2019 Pivotal Labs
3
+ Copyright (c) 2008-2024 The Jasmine developers
3
4
 
4
5
  Permission is hereby granted, free of charge, to any person obtaining
5
6
  a copy of this software and associated documentation files (the
@@ -530,14 +531,13 @@ jasmineRequire.HtmlReporter = function(j$) {
530
531
  if (noExpectations(resultNode.result)) {
531
532
  specDescription = 'SPEC HAS NO EXPECTATIONS ' + specDescription;
532
533
  }
533
- if (
534
- resultNode.result.status === 'pending' &&
535
- resultNode.result.pendingReason !== ''
536
- ) {
537
- specDescription =
538
- specDescription +
539
- ' PENDING WITH MESSAGE: ' +
540
- resultNode.result.pendingReason;
534
+ if (resultNode.result.status === 'pending') {
535
+ if (resultNode.result.pendingReason !== '') {
536
+ specDescription +=
537
+ ' PENDING WITH MESSAGE: ' + resultNode.result.pendingReason;
538
+ } else {
539
+ specDescription += ' PENDING';
540
+ }
541
541
  }
542
542
  specListNode.appendChild(
543
543
  createDom(
@@ -55,9 +55,6 @@ body {
55
55
  position: fixed;
56
56
  right: 100%;
57
57
  }
58
- .jasmine_html-reporter .jasmine-version {
59
- color: #aaa;
60
- }
61
58
  .jasmine_html-reporter .jasmine-banner {
62
59
  margin-top: 14px;
63
60
  }
@@ -169,10 +166,11 @@ body {
169
166
  }
170
167
  .jasmine_html-reporter .jasmine-bar.jasmine-menu {
171
168
  background-color: #fff;
172
- color: #aaa;
169
+ color: #000;
173
170
  }
174
171
  .jasmine_html-reporter .jasmine-bar.jasmine-menu a {
175
- color: #333;
172
+ color: blue;
173
+ text-decoration: underline;
176
174
  }
177
175
  .jasmine_html-reporter .jasmine-bar a {
178
176
  color: white;
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2008-2023 Pivotal Labs
2
+ Copyright (c) 2008-2019 Pivotal Labs
3
+ Copyright (c) 2008-2024 The Jasmine developers
3
4
 
4
5
  Permission is hereby granted, free of charge, to any person obtaining
5
6
  a copy of this software and associated documentation files (the
@@ -2644,11 +2645,7 @@ getJasmineRequireObj().buildExpectationResult = function(j$) {
2644
2645
  } else if (options.stack) {
2645
2646
  error = options;
2646
2647
  } else {
2647
- try {
2648
- throw new Error(message());
2649
- } catch (e) {
2650
- error = e;
2651
- }
2648
+ error = new Error(message());
2652
2649
  }
2653
2650
  }
2654
2651
  // Omit the message from the stack trace because it will be
@@ -3524,7 +3521,7 @@ getJasmineRequireObj().ExceptionFormatter = function(j$) {
3524
3521
  lines.unshift(stackTrace.message);
3525
3522
  }
3526
3523
 
3527
- if (error.cause) {
3524
+ if (error.cause && error.cause instanceof Error) {
3528
3525
  const substack = this.stack_(error.cause, {
3529
3526
  messageHandling: 'require'
3530
3527
  });
@@ -10484,5 +10481,5 @@ getJasmineRequireObj().UserContext = function(j$) {
10484
10481
  };
10485
10482
 
10486
10483
  getJasmineRequireObj().version = function() {
10487
- return '4.6.0';
10484
+ return '4.6.1';
10488
10485
  };
@@ -1,5 +1,6 @@
1
1
  /*
2
- Copyright (c) 2008-2023 Pivotal Labs
2
+ Copyright (c) 2008-2019 Pivotal Labs
3
+ Copyright (c) 2008-2024 The Jasmine developers
3
4
 
4
5
  Permission is hereby granted, free of charge, to any person obtaining
5
6
  a copy of this software and associated documentation files (the
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jasmine-core",
3
3
  "license": "MIT",
4
- "version": "4.6.0",
4
+ "version": "4.6.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/jasmine/jasmine.git"