Skip to content

Commit

Permalink
Update button-group.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorehouse authored and pi0 committed Oct 22, 2017
1 parent 1b4618f commit 861b358
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions tests/components/button-group.spec.js
@@ -1,28 +1,24 @@
import { loadFixture, testVM } from "../helpers";
import { loadFixture, testVM } from "../helpers"

describe("button-group", async () => {
beforeEach(loadFixture("button-group"));
testVM();
beforeEach(loadFixture("button-group"))
testVM()

const btnRefs = ["basic", "vertical", "size"];
it("basic should contain base class", async () => {
const { app: { $refs } } = window

it("should contain base class", async () => {
const { app: { $refs } } = window;

btnRefs.forEach(ref => {
expect($refs[ref]).toHaveClass("btn-group");
});
expect($refs.basic).toHaveClass("btn-group")
});

it("should apply vertical class", async () => {
const { app: { $refs } } = window;
const { app: { $refs } } = window

expect($refs.vertical).toHaveClass("btn-group-vertical");
expect($refs.vertical).toHaveClass("btn-group-vertical")
});

it("should apply size class", async () => {
const { app: { $refs } } = window;
const { app: { $refs } } = window

expect($refs.size).toHaveClass("btn-group-sm");
expect($refs.size).toHaveClass("btn-group-sm")
});
});

0 comments on commit 861b358

Please sign in to comment.