22d039a229
* ✨ Initial implementation of sets api on ozone * ✨ Introduce sortDirection to querySets * 🧹 Cleanup and refactor * ✨ Align setView for response * ♻️ Rename and add specific error * 🐛 Cleanup unnecessary check that is covered by lexicon * ✨ Rename remove to delete and add set suffix * ✨ Use id and createdAt for values pagination * ✨ Add index on createdAt for query perf and other cleanups * 🐛 Set createdAt when inserting values * 📝 Add changeset * ✨ Add index on setId and createdAt
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`ozone-sets querySets returns all sets when no parameters are provided 1`] = `
|
|
Array [
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "Another test set",
|
|
"name": "another-set",
|
|
"setSize": 0,
|
|
"updatedAt": "1970-01-01T00:00:00.000Z",
|
|
},
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "Test set 1",
|
|
"name": "test-set-1",
|
|
"setSize": 0,
|
|
"updatedAt": "1970-01-01T00:00:00.000Z",
|
|
},
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"name": "test-set-2",
|
|
"setSize": 0,
|
|
"updatedAt": "1970-01-01T00:00:00.000Z",
|
|
},
|
|
]
|
|
`;
|
|
|
|
exports[`ozone-sets upsertSet creates a new set 1`] = `
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "A new test set",
|
|
"name": "new-test-set",
|
|
"setSize": 0,
|
|
"updatedAt": "1970-01-01T00:00:00.000Z",
|
|
}
|
|
`;
|
|
|
|
exports[`ozone-sets upsertSet updates an existing set 1`] = `
|
|
Object {
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"description": "Updated description",
|
|
"name": "new-test-set",
|
|
"setSize": 0,
|
|
"updatedAt": "1970-01-01T00:00:00.000Z",
|
|
}
|
|
`;
|