diff --git a/resources/assets/src/views/admin/Market.vue b/resources/assets/src/views/admin/Market.vue
index 7a720e0d..e92d4611 100644
--- a/resources/assets/src/views/admin/Market.vue
+++ b/resources/assets/src/views/admin/Market.vue
@@ -13,17 +13,17 @@
-
+
+
+
{
Vue.prototype.$http.get.mockResolvedValue([
- { name: 'a', dependencies: { requirements: [] } },
+ { name: 'a', dependencies: { all: {}, unsatisfied: {} } },
{
name: 'b',
dependencies: {
- requirements: { a: '^1.0.0', c: '^2.0.0' }, unsatisfiedRequirements: { c: {} },
+ all: { a: '^1.0.0', c: '^2.0.0' }, unsatisfied: { c: {} },
},
},
])
@@ -24,16 +24,16 @@ test('render dependencies', async () => {
test('render operation buttons', async () => {
Vue.prototype.$http.get.mockResolvedValue([
{
- name: 'a', dependencies: { requirements: [] }, installed: true, update_available: true,
+ name: 'a', dependencies: { all: {}, unsatisfied: {} }, installed: true, update_available: true,
},
{
- name: 'b', dependencies: { requirements: [] }, installed: true, enabled: true,
+ name: 'b', dependencies: { all: {}, unsatisfied: {} }, installed: true, enabled: true,
},
{
- name: 'c', dependencies: { requirements: [] }, installed: true,
+ name: 'c', dependencies: { all: {}, unsatisfied: {} }, installed: true,
},
{
- name: 'd', dependencies: { requirements: [] }, installed: false,
+ name: 'd', dependencies: { all: {}, unsatisfied: {} }, installed: false,
},
])
const wrapper = mount(Market)
@@ -49,7 +49,7 @@ test('render operation buttons', async () => {
test('install plugin', async () => {
Vue.prototype.$http.get.mockResolvedValue([
{
- name: 'd', dependencies: { requirements: [] }, installed: false,
+ name: 'd', dependencies: { all: {}, unsatisfied: {} }, installed: false,
},
])
Vue.prototype.$http.post
@@ -75,7 +75,7 @@ test('update plugin', async () => {
{
name: 'a',
version: '2.0.0',
- dependencies: { requirements: [] },
+ dependencies: { all: {}, unsatisfied: {} },
installed: '1.0.0',
update_available: true,
},
diff --git a/resources/assets/tests/views/admin/Plugins.test.ts b/resources/assets/tests/views/admin/Plugins.test.ts
index 8f29b86c..2c0ff846 100644
--- a/resources/assets/tests/views/admin/Plugins.test.ts
+++ b/resources/assets/tests/views/admin/Plugins.test.ts
@@ -52,7 +52,7 @@ test('enable plugin', async () => {
name: 'a', dependencies: { all: {}, unsatisfied: {} }, enabled: false,
},
{
- name: 'b', dependencies: { all: {}, unsatisfied: {} }, enabled: false,
+ name: 'b', dependencies: { all: { c: '' }, unsatisfied: {} }, enabled: false,
},
])
Vue.prototype.$http.post