UI unit test: fix expected values (#7792)

This commit is contained in:
dahn 2023-07-31 12:46:22 +02:00 committed by GitHub
parent a2eb10304f
commit fd13184dda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -767,7 +767,6 @@
"label.egressdefaultpolicy": "Default egress policy", "label.egressdefaultpolicy": "Default egress policy",
"label.elastic": "Elastic", "label.elastic": "Elastic",
"label.email": "Email", "label.email": "Email",
"label.enabled": "Enabled",
"label.enable.autoscale.vmgroup": "Enable AutoScale VM Group", "label.enable.autoscale.vmgroup": "Enable AutoScale VM Group",
"label.enable.host": "Enable Host", "label.enable.host": "Enable Host",
"label.enable.network.offering": "Enable network offering", "label.enable.network.offering": "Enable network offering",
@ -2016,6 +2015,7 @@
"label.uk.keyboard": "UK keyboard", "label.uk.keyboard": "UK keyboard",
"label.unauthorized": "Unauthorized", "label.unauthorized": "Unauthorized",
"label.unavailable": "Unavailable", "label.unavailable": "Unavailable",
"label.undefined": "Undefined",
"label.unit": "Usage unit", "label.unit": "Usage unit",
"label.unknown": "Unknown", "label.unknown": "Unknown",
"label.unlimited": "Unlimited", "label.unlimited": "Unlimited",

View File

@ -1140,10 +1140,9 @@ describe('Views > AutogenView.vue', () => {
]) ])
expect(wrapper.vm.showAction).toBeTruthy() expect(wrapper.vm.showAction).toBeTruthy()
expect(listUuidOpts).toHaveBeenCalledTimes(4) expect(listUuidOpts).toHaveBeenCalledTimes(4)
expect(listUuidOpts).toHaveBeenCalledWith({ name: 'id', type: 'uuid' }) expect(listUuidOpts).toHaveBeenCalledWith({ name: 'id', type: 'uuid' }, undefined)
expect(listUuidOpts).toHaveBeenCalledWith({ name: 'column1', type: 'list' }) expect(listUuidOpts).toHaveBeenCalledWith({ name: 'column1', type: 'list' }, undefined)
expect(listUuidOpts).toHaveBeenCalledWith({ name: 'column2', type: 'string' }) expect(listUuidOpts).toHaveBeenCalledWith({ name: 'column2', type: 'string' }, undefined)
expect(listUuidOpts).toHaveBeenCalledWith({ name: 'account', type: 'string' })
done() done()
}) })