File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 ( ) => {
You can’t perform that action at this time.
0 commit comments