Skip to content

Commit 244789c

Browse files
committed
Update date fieldtype test
1 parent 58dcd9d commit 244789c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

resources/js/tests/components/fieldtypes/DateFieldtype.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { mount } from '@vue/test-utils';
22
import { test, expect } from 'vitest';
33
import DateFieldtype from '@/components/fieldtypes/DateFieldtype.vue';
4-
import { createPinia } from 'pinia';
54
import DateFormatter from '@statamic/components/DateFormatter.js';
5+
import { containerContextKey } from '@statamic/components/ui/Publish/Container.vue';
66

77
window.__ = (key) => key;
88

@@ -27,10 +27,9 @@ const makeDateField = (props = {}) => {
2727
},
2828
...props,
2929
},
30-
plugins: [createPinia()],
3130
global: {
3231
provide: {
33-
store: '',
32+
[containerContextKey]: {}
3433
},
3534
mocks: {
3635
$config: {

0 commit comments

Comments
 (0)