Skip to content

Commit fd13184

Browse files
authored
UI unit test: fix expected values (#7792)
1 parent a2eb103 commit fd13184

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ui/public/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,6 @@
767767
"label.egressdefaultpolicy": "Default egress policy",
768768
"label.elastic": "Elastic",
769769
"label.email": "Email",
770-
"label.enabled": "Enabled",
771770
"label.enable.autoscale.vmgroup": "Enable AutoScale VM Group",
772771
"label.enable.host": "Enable Host",
773772
"label.enable.network.offering": "Enable network offering",
@@ -2016,6 +2015,7 @@
20162015
"label.uk.keyboard": "UK keyboard",
20172016
"label.unauthorized": "Unauthorized",
20182017
"label.unavailable": "Unavailable",
2018+
"label.undefined": "Undefined",
20192019
"label.unit": "Usage unit",
20202020
"label.unknown": "Unknown",
20212021
"label.unlimited": "Unlimited",

ui/tests/unit/views/AutogenView.spec.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,10 +1140,9 @@ describe('Views > AutogenView.vue', () => {
11401140
])
11411141
expect(wrapper.vm.showAction).toBeTruthy()
11421142
expect(listUuidOpts).toHaveBeenCalledTimes(4)
1143-
expect(listUuidOpts).toHaveBeenCalledWith({ name: 'id', type: 'uuid' })
1144-
expect(listUuidOpts).toHaveBeenCalledWith({ name: 'column1', type: 'list' })
1145-
expect(listUuidOpts).toHaveBeenCalledWith({ name: 'column2', type: 'string' })
1146-
expect(listUuidOpts).toHaveBeenCalledWith({ name: 'account', type: 'string' })
1143+
expect(listUuidOpts).toHaveBeenCalledWith({ name: 'id', type: 'uuid' }, undefined)
1144+
expect(listUuidOpts).toHaveBeenCalledWith({ name: 'column1', type: 'list' }, undefined)
1145+
expect(listUuidOpts).toHaveBeenCalledWith({ name: 'column2', type: 'string' }, undefined)
11471146
done()
11481147
})
11491148

0 commit comments

Comments
 (0)