import { loadFixture, testVM } from "../helpers";

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

    const btnRefs = ["basic", "vertical", "size"];

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

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

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

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

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

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

@@ -41,17 +41,16 @@
 helpers%22
-;
 %0A%0Adescri
@@ -125,17 +125,16 @@
 group%22))
-;
 %0A    tes
@@ -142,71 +142,24 @@
 VM()
-;
 %0A%0A    
-const btnRefs = %5B%22basic%22, %22vertical%22, %22size%22%5D;%0A%0A    it(%22
+it(%22basic 
 shou
@@ -241,48 +241,10 @@
 ndow
-;
 %0A%0A
-        btnRefs.forEach(ref =%3E %7B%0A    
     
@@ -263,13 +263,14 @@
 refs
-%5Bref%5D
+.basic
 ).to
@@ -295,21 +295,8 @@
 up%22)
-;%0A        %7D);
 %0A   
@@ -386,33 +386,32 @@
 efs %7D %7D = window
-;
 %0A%0A        expect
@@ -460,17 +460,16 @@
 rtical%22)
-;
 %0A    %7D);
@@ -559,17 +559,16 @@
 = window
-;
 %0A%0A      
@@ -615,17 +615,16 @@
 oup-sm%22)
-;
 %0A    %7D);

Update button-group.spec.js