The frontend for the project formerly known as signet, now known as beignet.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

example.spec.ts 517 B

2 년 전
2 년 전
2 년 전
1234567891011121314151617181920
  1. import { expect } from 'chai';
  2. import { shallowMount } from '@vue/test-utils';
  3. import HelloWorld from '@/components/HelloWorld.vue';
  4. // TODO: Not sure why this isn't working
  5. // vi.mock('@/api/composed', () => ({
  6. // getRewardFunds: vi.fn(() => []),
  7. // }));
  8. describe('HelloWorld.vue', () => {
  9. it('renders props.msg when passed', () => {
  10. const msg = 'new message';
  11. const wrapper = shallowMount(HelloWorld, {
  12. props: { msg },
  13. });
  14. expect(wrapper.text())
  15. .to
  16. .include(msg);
  17. });
  18. });