Skip to content

Commit

Permalink
Remove old props references from test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJaredWilcurt authored Mar 14, 2024
1 parent da2d76b commit 9f8cf9d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions tests/unit/views/HelloWorld.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,8 @@ import testHelpers from '@@/unit/testHelpers.js';
import HelloWorld from '@/views/HelloWorld.vue';

describe('HelloWorld.vue', () => {
const requiredProps = {};

const setupWrapper = async () => {
const options = {
props: {
...requiredProps
}
};
const wrapper = await testHelpers.shallowMount(HelloWorld, options);
const wrapper = await testHelpers.shallowMount(HelloWorld);
return wrapper;
};

Expand All @@ -23,7 +16,7 @@ describe('HelloWorld.vue', () => {
.toMatchSnapshot();
});

test('Message prop displays correctly', async () => {
test('App name and message displays correctly', async () => {
const wrapper = await setupWrapper();

expect(wrapper.find('[data-test="appName"]').text())
Expand Down Expand Up @@ -66,7 +59,7 @@ describe('HelloWorld.vue', () => {
.toMatchSnapshot();
});

test('Message prop displays correctly', async () => {
test('Message displays correctly', async () => {
const wrapper = await setupWrapper();

expect(wrapper.find('[data-test="message"]').text())
Expand Down

0 comments on commit 9f8cf9d

Please sign in to comment.