Skip to content

Commit

Permalink
fix(lib): failed test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BibiSebi committed Feb 20, 2024
1 parent 62ce443 commit d500c26
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('createPluginActions', () => {
story: { content: {} },
storyId: 123,
token: null,
schema: { options: [], field_type: 'abc' },
schema: { options: [], field_type: 'abc', translatable: false },
language: '',
interfaceLanguage: 'en',
model: randomString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('handlePluginMessage', () => {
model: 123,
spaceId: 1234,
story: { content: {} },
schema: { options: [], field_type: 'avh' },
schema: { options: [], field_type: 'avh', translatable: false },
storyId: 1344,
token: 'rfwreff2435wewff43',
isModalOpen: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ describe('field plugin schema', () => {
isFieldPluginSchema({
field_type: 'field-type-name',
options: [],
translatable: false,
}),
).toEqual(true)
expect(
Expand All @@ -140,6 +141,7 @@ describe('field plugin schema', () => {
isFieldPluginSchema({
field_type: 'field-type-name',
options: [],
translatable: false,
}),
).toEqual(true)
expect(
Expand Down Expand Up @@ -184,6 +186,7 @@ describe('field plugin schema', () => {
isFieldPluginSchema({
field_type: 'field-type-name',
options: [],
translatable: false,
}),
).toEqual(true)
expect(
Expand All @@ -197,6 +200,7 @@ describe('field plugin schema', () => {
isFieldPluginSchema({
field_type: 'field-type-name',
options: [],
translatable: false,
}),
).toEqual(true)
expect(
Expand Down Expand Up @@ -245,6 +249,7 @@ describe('field plugin schema', () => {
isFieldPluginSchema({
field_type: 'name',
options: [option],
translatable: false,
}),
).toEqual(true)
expect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const stub: LoadedMessage = {
story: { content: {} },
language: '',
interfaceLanguage: 'en',
schema: { options: [], field_type: 'blah' },
schema: { options: [], field_type: 'blah', translatable: false },
releases: [],
releaseId: undefined,
}
Expand Down Expand Up @@ -122,6 +122,7 @@ describe('StateChangedMessage', () => {
value: 'ab',
},
],
translatable: false,
} as FieldPluginSchema,
}),
).toEqual(true)
Expand Down

0 comments on commit d500c26

Please sign in to comment.