| Conditions | 4 |
| Total Lines | 39 |
| Code Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { shallowMount } from '@vue/test-utils'; |
||
| 6 | function createWrapper() { |
||
| 7 | return shallowMount(Shopware.Component.build('sw-cms-el-product-name'), { |
||
|
|
|||
| 8 | propsData: { |
||
| 9 | element: { |
||
| 10 | config: { |
||
| 11 | content: { |
||
| 12 | source: 'static', |
||
| 13 | value: null |
||
| 14 | }, |
||
| 15 | verticalAlign: { |
||
| 16 | source: 'static', |
||
| 17 | value: null |
||
| 18 | } |
||
| 19 | } |
||
| 20 | }, |
||
| 21 | defaultConfig: {} |
||
| 22 | }, |
||
| 23 | mocks: { |
||
| 24 | $sanitize: key => key |
||
| 25 | }, |
||
| 26 | data() { |
||
| 27 | return { |
||
| 28 | cmsPageState: { |
||
| 29 | currentPage: { |
||
| 30 | type: 'product_detail' |
||
| 31 | } |
||
| 32 | } |
||
| 33 | }; |
||
| 34 | }, |
||
| 35 | provide: { |
||
| 36 | cmsService: { |
||
| 37 | getPropertyByMappingPath: () => {} |
||
| 38 | } |
||
| 39 | }, |
||
| 40 | stubs: { |
||
| 41 | 'sw-text-editor': true |
||
| 42 | } |
||
| 43 | }); |
||
| 44 | } |
||
| 45 | |||
| 62 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.