Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit f9fc198

Browse files
update test
1 parent 80f8b89 commit f9fc198

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/atom/decoration.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Marker from '../../lib/atom/marker';
99
import MarkerLayer from '../../lib/atom/marker-layer';
1010
import ErrorBoundary from '../../lib/error-boundary';
1111

12-
describe('Decoration', function() {
12+
describe.only('Decoration', function() {
1313
let atomEnv, workspace, editor, marker;
1414

1515
beforeEach(async function() {
@@ -161,7 +161,7 @@ describe('Decoration', function() {
161161
</ErrorBoundary>
162162
);
163163
mount(app);
164-
assert.strictEqual(errors[0], 'You are trying to decorate a gutter but did not supply gutterName prop.');
164+
assert.strictEqual(errors[0].message, 'You are trying to decorate a gutter but did not supply gutterName prop.');
165165
});
166166
});
167167
});

test/atom/marker.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ describe('Marker', function() {
159159

160160
it('if its ID is invalid', function() {
161161
mount(<ErrorBoundary><Marker editor={editor} id={67} /></ErrorBoundary>);
162-
assert.strictEqual(errors[0], 'Error: Invalid marker ID: 67');
162+
assert.strictEqual(errors[0].message, 'Error: Invalid marker ID: 67');
163163
});
164164
});
165165

0 commit comments

Comments
 (0)