Use .string instead of .work
This commit is contained in:
parent
b1cfdc4f25
commit
7fb13b757b
|
@ -26,13 +26,13 @@ describe("/rowsActions", () => {
|
||||||
|
|
||||||
function createRowActionRequest(): CreateRowActionRequest {
|
function createRowActionRequest(): CreateRowActionRequest {
|
||||||
return {
|
return {
|
||||||
name: generator.word(),
|
name: generator.string(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function createRowActionRequests(count: number): CreateRowActionRequest[] {
|
function createRowActionRequests(count: number): CreateRowActionRequest[] {
|
||||||
return generator
|
return generator
|
||||||
.unique(() => generator.word(), count)
|
.unique(() => generator.string(), count)
|
||||||
.map(name => ({ name }))
|
.map(name => ({ name }))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ describe("/rowsActions", () => {
|
||||||
const dirtyRowAction = {
|
const dirtyRowAction = {
|
||||||
...rowAction,
|
...rowAction,
|
||||||
id: generator.guid(),
|
id: generator.guid(),
|
||||||
valueToIgnore: generator.word(),
|
valueToIgnore: generator.string(),
|
||||||
}
|
}
|
||||||
const res = await createRowAction(tableId, dirtyRowAction, {
|
const res = await createRowAction(tableId, dirtyRowAction, {
|
||||||
status: 201,
|
status: 201,
|
||||||
|
@ -199,7 +199,7 @@ describe("/rowsActions", () => {
|
||||||
Object.entries(persisted.actions)
|
Object.entries(persisted.actions)
|
||||||
)!
|
)!
|
||||||
|
|
||||||
const updatedName = generator.word()
|
const updatedName = generator.string()
|
||||||
|
|
||||||
const res = await config.api.rowAction.update(tableId, actionId, {
|
const res = await config.api.rowAction.update(tableId, actionId, {
|
||||||
...actionData,
|
...actionData,
|
||||||
|
|
Loading…
Reference in New Issue