Permalink
Browse files

fix(badge): Default variant no longer exists in V4.beta (#875)

* Update demo.js

* Update badge.spec.js

* Update demo.js
  • Loading branch information...
tmorehouse committed Aug 17, 2017
1 parent 3c32d76 commit 5fc14d231eeaa02206e9504fa83d59da4f19195f
Showing with 6 additions and 4 deletions.
  1. +3 −3 tests/components/badge.spec.js
  2. +3 −1 tests/fixtures/badge/demo.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 };
});

@@ -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 () => {
@@ -3,12 +3,14 @@ window.app = new Vue({
data() {
return {
variants: [
'default',
'secondary',
'primary',
'success',
'info',
'warning',
'danger',
'dark',
'light'
]
}
},

0 comments on commit 5fc14d2

Please sign in to comment.