Skip to content

Commit dba71e2

Browse files
fixed a test that was failing in browsers
1 parent 36bdb6b commit dba71e2

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<html>
22
<head>
3-
<meta http-equiv="refresh" content="0; url=tests/index.html">
3+
<meta http-equiv="refresh" content="0; url=test/index.html">
44
</head>
55
<body>
66
<script>
7-
window.location = 'tests/index.html';
7+
window.location = 'test/index.html';
88
</script>
99
</body>
1010
</html>

test/specs/invalid/invalid.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ describe('Invalid syntax', function () {
88
.then(helper.shouldNotGetCalled)
99
.catch(function (err) {
1010
expect(err).to.be.an.instanceOf(Error);
11-
expect(err.code).to.equal('ENOENT')
12-
expect(err.message).to.contain('Error opening file ');
11+
if (userAgent.isNode) {
12+
expect(err.code).to.equal('ENOENT');
13+
expect(err.message).to.contain('Error opening file ');
14+
}
1315
});
1416
});
1517

0 commit comments

Comments
 (0)