Skip to content

Commit

Permalink
test rearrange dictionaries after update
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitruong922 committed Nov 26, 2024
1 parent c2a9888 commit ac40dfd
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions test/options-util.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,17 @@ function createProfileOptionsTestData1() {
collapseEmphaticSequences: 'false',
},
dictionaries: {
'Test Dictionary': {
'Test Dictionary 1': {
priority: 0,
enabled: true,
allowSecondarySearches: false,
},
'Test Dictionary 2': {
priority: 1,
enabled: true,
allowSecondarySearches: false,
},
'Test Dictionary 3': {
priority: 0,
enabled: true,
allowSecondarySearches: false,
Expand Down Expand Up @@ -440,8 +450,26 @@ function createProfileOptionsUpdatedTestData1() {
},
dictionaries: [
{
name: 'Test Dictionary',
alias: 'Test Dictionary',
name: 'Test Dictionary 2',
alias: 'Test Dictionary 2',
enabled: true,
allowSecondarySearches: false,
definitionsCollapsible: 'not-collapsible',
partsOfSpeechFilter: true,
useDeinflections: true,
},
{
name: 'Test Dictionary 1',
alias: 'Test Dictionary 1',
enabled: true,
allowSecondarySearches: false,
definitionsCollapsible: 'not-collapsible',
partsOfSpeechFilter: true,
useDeinflections: true,
},
{
name: 'Test Dictionary 3',
alias: 'Test Dictionary 3',
enabled: true,
allowSecondarySearches: false,
definitionsCollapsible: 'not-collapsible',
Expand Down

0 comments on commit ac40dfd

Please sign in to comment.