Skip to content

Commit

Permalink
fix(badge): Default variant no longer exists in V4.beta (#875)
Browse files Browse the repository at this point in the history
* Update demo.js

* Update badge.spec.js

* Update demo.js
  • Loading branch information
tmorehouse committed Aug 17, 2017
1 parent 3c32d76 commit 5fc14d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/components/badge.spec.js
@@ -1,6 +1,6 @@
import { loadFixture, testVM } from "../helpers";

const variantList = ["default", "primary", "success", "info", "warning", "danger"].map(variant => {
const variantList = ["secondary", "primary", "success", "info", "warning", "danger", "dark", "light"].map(variant => {
return { ref: `badge_${variant}`, variant };
});

Expand All @@ -19,11 +19,11 @@ describe("badge", async () => {
});
});

it("should apply default pill class when not passed variant", async () => {
it("should apply secondary class when not passed variant", async () => {
const { app: { $refs } } = window;

const vm = $refs.no_props;
expect(vm).toHaveClass("badge-default");
expect(vm).toHaveClass("badge-secondary");
});

it("should not apply pill class when not passed pill boolean prop", async () => {
Expand Down
4 changes: 3 additions & 1 deletion tests/fixtures/badge/demo.js
Expand Up @@ -3,12 +3,14 @@ window.app = new Vue({
data() {
return {
variants: [
'default',
'secondary',
'primary',
'success',
'info',
'warning',
'danger',
'dark',
'light'
]
}
},
Expand Down

0 comments on commit 5fc14d2

Please sign in to comment.