Skip to content

Commit

Permalink
Updated unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Jun 15, 2022
1 parent d0e681b commit 5f24f84
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/unit/ContentVuer.spec.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { shallowMount } from '@vue/test-utils'
import ContentVuer from '../../src/components/ContentVuer';
import { SideBar } from '@abi-software/map-side-bar';
import { FlatmapVuer, MultiFlatmapVuer } from '@abi-software/flatmapvuer';
import { ScaffoldVuer } from '@abi-software/scaffoldvuer';
import Flatmap from "../../src/components/viewers/Flatmap";
import MultiFlatmap from "../../src/components/viewers/MultiFlatmap";
import Scaffold from "../../src/components/viewers/Scaffold";


const div = document.createElement('div');
document.body.appendChild(div);
Expand All @@ -29,13 +31,13 @@ const wrapper = shallowMount(ContentVuer, {

describe('ContentVuer', () => {
it('MultiFlatmapVuer', () => {
expect(wrapper.findComponent(MultiFlatmapVuer).exists()).to.be.true;
expect(wrapper.findComponent(MultiFlatmap).exists()).to.be.true;
}),
it('FlatmapVuer', () => {
expect(wrapper.findComponent(FlatmapVuer).exists()).to.be.false;
expect(wrapper.findComponent(Flatmap).exists()).to.be.false;
}),
it('ScaffoldVuer', () => {
expect(wrapper.findComponent(ScaffoldVuer).exists()).to.be.false;
expect(wrapper.findComponent(Scaffold).exists()).to.be.false;
}),
it('SideBar', () => {
expect(wrapper.findComponent(SideBar).exists()).to.be.false;
Expand Down

0 comments on commit 5f24f84

Please sign in to comment.