Skip to content

Commit

Permalink
update: add balstack spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchickenburger committed Jan 20, 2022
1 parent 89cdb2f commit 220ea73
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/components/_global/BalStack/BalStack.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { render } from '@testing-library/vue';
import BalStack from './BalStack.vue';

describe('BalStack', () => {
describe('When using BalStack', () => {
it('should render items horizontally when the horizontal prop is supplied', () => {
const { getByText } = render(BalStack, {
slots: {
default: '<div>First</div><div>Second</div><div>Third</div>'
}
});

// check that elements are actually rendered as children
expect(getByText('First')).toBeVisible();
expect(getByText('Second')).toBeVisible();
expect(getByText('Third')).toBeVisible();
});

// it('should render items vertically when the vertical prop is supplied', () => {});

// it('should render items with a space between them', () => {});

// it('should render items with a border between them if withBorder prop is supplied', () => {});
});
});

0 comments on commit 220ea73

Please sign in to comment.