Skip to content

Commit

Permalink
Update tag testing setup to block and force a sync prior to testing. …
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Mar 26, 2019
1 parent f05e276 commit e6578b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion client/galaxy/scripts/components/Tags/StatelessTags.test.js
@@ -1,6 +1,7 @@
import { mount, createLocalVue } from "@vue/test-utils";
import StatelessTags from "./StatelessTags";
import _l from "utils/localization";
import Vue from "vue";

describe("Tags/StatelessTags.vue", () => {
const localVue = createLocalVue();
Expand All @@ -9,12 +10,13 @@ describe("Tags/StatelessTags.vue", () => {
let testTags = ["abc", "def", "ghi"];
let wrapper, emitted;

beforeEach(function() {
beforeEach(async () => {
wrapper = mount(StatelessTags, { localVue });
wrapper.setProps({
value: testTags
});
emitted = wrapper.emitted();
await Vue.nextTick();
});

it("should render a div for each tag", () => {
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Expand Up @@ -14,7 +14,7 @@
"@babel/polyfill": "^7.4.0",
"@handsontable/vue": "^2.0.0-beta1",
"@johmun/vue-tags-input": "^2.0.1",
"@vue/test-utils": "1.0.0-beta.28",
"@vue/test-utils": "1.0.0-beta.29",
"axios": "^0.18.0",
"backbone": "1.4.0",
"bibtex-parse-js": "^0.0.24",
Expand Down
8 changes: 4 additions & 4 deletions client/yarn.lock
Expand Up @@ -881,10 +881,10 @@
source-map "~0.6.1"
vue-template-es2015-compiler "^1.8.2"

"@vue/test-utils@1.0.0-beta.28":
version "1.0.0-beta.28"
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.0.0-beta.28.tgz#767c43413df8cde86128735e58923803e444b9a5"
integrity sha512-uVbFJG0g/H9hf2pgWUdhvQYItRGzQ44cMFf00wp0YEo85pxuvM9e3mx8QLQfx6R2CogxbK4CvV7qvkLblehXeQ==
"@vue/test-utils@1.0.0-beta.29":
version "1.0.0-beta.29"
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.0.0-beta.29.tgz#c942cf25e891cf081b6a03332b4ae1ef430726f0"
integrity sha512-yX4sxEIHh4M9yAbLA/ikpEnGKMNBCnoX98xE1RwxfhQVcn0MaXNSj1Qmac+ZydTj6VBSEVukchBogXBTwc+9iA==
dependencies:
dom-event-types "^1.0.0"
lodash "^4.17.4"
Expand Down

0 comments on commit e6578b6

Please sign in to comment.