mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix test Con't
This commit is contained in:
parent
611c323ee0
commit
eee918c522
1 changed files with 5 additions and 2 deletions
|
|
@ -705,8 +705,11 @@ describe('Labels API', () => {
|
|||
expect(res.body.data.moveLabel.label.position).to.eql(
|
||||
labels[4].position
|
||||
)
|
||||
const reorderedLabels = await getRepository(Label).findBy({
|
||||
user: { id: user.id },
|
||||
const reorderedLabels = await getRepository(Label).find({
|
||||
where: {
|
||||
user: { id: user.id },
|
||||
},
|
||||
order: { position: 'ASC' },
|
||||
})
|
||||
expect(reorderedLabels.map((l) => l.id)).to.eql([
|
||||
labels[0].id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue