-
Notifications
You must be signed in to change notification settings - Fork 296
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
89cdb2f
commit 220ea73
Showing
1 changed file
with
25 additions
and
0 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 |
---|---|---|
@@ -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', () => {}); | ||
}); | ||
}); |