Skip to content

Commit 0609976

Browse files
Fix taxonomy empty items status assertion
1 parent 183fbf5 commit 0609976

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/sanity-check/api/taxonomy-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ describe('Taxonomy API Tests', () => {
308308
await stack.taxonomy().publish({ locales: ['en-us'], environments: ['development'], items: [] })
309309
// Some environments may accept empty arrays, just check it returns something
310310
} catch (e) {
311-
expect(e.status).to.be.oneOf([400, 422])
311+
expect(e.status).to.be.oneOf([400, 412, 422])
312312
}
313313
})
314314

@@ -367,7 +367,7 @@ describe('Taxonomy API Tests', () => {
367367
try {
368368
await stack.taxonomy().unpublish({ locales: ['en-us'], environments: ['development'], items: [] })
369369
} catch (e) {
370-
expect(e.status).to.be.oneOf([400, 422])
370+
expect(e.status).to.be.oneOf([400, 412, 422])
371371
}
372372
})
373373
})

0 commit comments

Comments
 (0)