Skip to content

Commit b783fb2

Browse files
committed
Remove unused function
1 parent ba12496 commit b783fb2

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

addon-test-support/adapter.js

-23
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,6 @@
11
import Ember from 'ember';
22
import * as QUnit from 'qunit';
33

4-
function unhandledRejectionAssertion(current, error) {
5-
let message, source;
6-
7-
if (typeof error === 'object' && error !== null) {
8-
message = error.message;
9-
source = error.stack;
10-
} else if (typeof error === 'string') {
11-
message = error;
12-
source = 'unknown source';
13-
} else {
14-
message = 'unhandledRejection occurred, but it had no message';
15-
source = 'unknown source';
16-
}
17-
18-
current.assert.pushResult({
19-
result: false,
20-
actual: false,
21-
expected: true,
22-
message: message,
23-
source: source,
24-
});
25-
}
26-
274
export function nonTestDoneCallback() {}
285

296
let Adapter = Ember.Test.Adapter.extend({

0 commit comments

Comments
 (0)