Skip to content

Commit a7cef11

Browse files
committed
chore: update int test
1 parent c51dfbd commit a7cef11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/localization/int.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3620,8 +3620,7 @@ describe('Localization', () => {
36203620
})
36213621

36223622
describe('localize status', () => {
3623-
it('should not return fallback status data', async () => {
3624-
// TODO: allow fields to opt out of using fallbackLocale
3623+
it('should set other locales to draft upon creation', async () => {
36253624
const doc = await payload.create({
36263625
collection: allFieldsLocalizedSlug,
36273626
data: {
@@ -3637,7 +3636,7 @@ describe('Localization', () => {
36373636
collection: allFieldsLocalizedSlug,
36383637
})
36393638

3640-
expect(esDoc._status).toBeUndefined()
3639+
expect(esDoc._status).toContain('draft')
36413640
})
36423641

36433642
it('should return correct data based on draft arg', async () => {

0 commit comments

Comments
 (0)