Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b4618f
commit 861b358
Showing
1 changed file
with
10 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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") | ||
}); | ||
}); |