diff --git a/backend/FwLite/FwLiteProjectSync.Tests/SyncTests.cs b/backend/FwLite/FwLiteProjectSync.Tests/SyncTests.cs index 865a16988..a49a4de8c 100644 --- a/backend/FwLite/FwLiteProjectSync.Tests/SyncTests.cs +++ b/backend/FwLite/FwLiteProjectSync.Tests/SyncTests.cs @@ -298,6 +298,14 @@ public async Task PartsOfSpeechSyncInEntries() await fwdataApi.CreatePartOfSpeech(noun); // Note we do *not* call crdtApi.CreatePartOfSpeech(noun); + var verb = new PartOfSpeech() + { + Id = new Guid("86ff66f6-0774-407a-a0dc-3eeaf873daf7"), + Name = { { "en", "verb" } }, + Predefined = true, + }; + await crdtApi.CreatePartOfSpeech(verb); + await fwdataApi.CreateEntry(new Entry() { LexemeForm = { { "en", "Pear" } }, @@ -308,10 +316,10 @@ await fwdataApi.CreateEntry(new Entry() }); await crdtApi.CreateEntry(new Entry() { - LexemeForm = { { "en", "Banana" } }, + LexemeForm = { { "en", "Eat" } }, Senses = [ - new Sense() { Gloss = { { "en", "Banana" } }, PartOfSpeechId = noun.Id } + new Sense() { Gloss = { { "en", "Eat" } }, PartOfSpeechId = verb.Id } ] }); await _syncService.Sync(crdtApi, fwdataApi);