Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(card): add card-body functional component & card-img fixes #843

Merged
merged 18 commits into from Aug 15, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions tests/components/card.spec.js
Expand Up @@ -118,9 +118,8 @@ describe("card", async () => {
expect($refs.card_group).toBeElement("section");
});

it('CardBody should have assigned class', async () => {
const {app: {$refs}} = window;
const body = $refs.card_body.children[0];
expect(body.classList.contains('card-text')).toBe(true);
it("CardBody should have assigned class", async () => {
const { app: { $refs } } = window;
expect($refs.body).toHaveClass("card-text");
Copy link
Member

@mosinve mosinve Aug 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoa, didnt know that it can be used that way )) 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, and it works across FC's and VM's! When I started with FC's, I knew testing helpers needed to be simpler to use against either.

});
});