Commit 8c9fad9d authored by Phil Hughes's avatar Phil Hughes

fixed repo_editor_spec

parent 3c9439ac
...@@ -299,14 +299,14 @@ describe('RepoEditor', () => { ...@@ -299,14 +299,14 @@ describe('RepoEditor', () => {
describe('show tabs', () => { describe('show tabs', () => {
it('shows tabs in edit mode', () => { it('shows tabs in edit mode', () => {
expect(vm.$el.querySelector('.nav-links').style.display).toBe(''); expect(vm.$el.querySelector('.nav-links')).not.toBe(null);
}); });
it('hides tabs in review mode', done => { it('hides tabs in review mode', done => {
vm.$store.state.currentActivityView = activityBarViews.review; vm.$store.state.currentActivityView = activityBarViews.review;
vm.$nextTick(() => { vm.$nextTick(() => {
expect(vm.$el.querySelector('.nav-links').style.display).toBe('none'); expect(vm.$el.querySelector('.nav-links')).toBe(null);
done(); done();
}); });
...@@ -316,7 +316,7 @@ describe('RepoEditor', () => { ...@@ -316,7 +316,7 @@ describe('RepoEditor', () => {
vm.$store.state.currentActivityView = activityBarViews.commit; vm.$store.state.currentActivityView = activityBarViews.commit;
vm.$nextTick(() => { vm.$nextTick(() => {
expect(vm.$el.querySelector('.nav-links').style.display).toBe('none'); expect(vm.$el.querySelector('.nav-links')).toBe(null);
done(); done();
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment