Migrate atlasId -> collectionId
This commit is contained in:
@ -124,7 +124,7 @@ describe('#updateDocument', () => {
|
||||
// Add a child for testing
|
||||
const newDocument = await Document.create({
|
||||
parentDocumentId: document.id,
|
||||
atlasId: collection.id,
|
||||
collectionId: collection.id,
|
||||
teamId: collection.teamId,
|
||||
userId: collection.creatorId,
|
||||
lastModifiedById: collection.creatorId,
|
||||
@ -160,7 +160,7 @@ describe('#moveDocument', () => {
|
||||
// Add a child for testing
|
||||
const newDocument = await Document.create({
|
||||
parentDocumentId: document.id,
|
||||
atlasId: collection.id,
|
||||
collectionId: collection.id,
|
||||
teamId: collection.teamId,
|
||||
userId: collection.creatorId,
|
||||
lastModifiedById: collection.creatorId,
|
||||
@ -195,7 +195,7 @@ describe('#removeDocument', () => {
|
||||
// Verify that the document was removed
|
||||
const collectionDocuments = await Document.findAndCountAll({
|
||||
where: {
|
||||
atlasId: collection.id,
|
||||
collectionId: collection.id,
|
||||
},
|
||||
});
|
||||
expect(collectionDocuments.count).toBe(1);
|
||||
@ -207,7 +207,7 @@ describe('#removeDocument', () => {
|
||||
// Add a child for testing
|
||||
const newDocument = await Document.create({
|
||||
parentDocumentId: document.id,
|
||||
atlasId: collection.id,
|
||||
collectionId: collection.id,
|
||||
teamId: collection.teamId,
|
||||
userId: collection.creatorId,
|
||||
lastModifiedById: collection.creatorId,
|
||||
@ -223,7 +223,7 @@ describe('#removeDocument', () => {
|
||||
expect(collection.documentStructure.length).toBe(1);
|
||||
const collectionDocuments = await Document.findAndCountAll({
|
||||
where: {
|
||||
atlasId: collection.id,
|
||||
collectionId: collection.id,
|
||||
},
|
||||
});
|
||||
expect(collectionDocuments.count).toBe(1);
|
||||
@ -235,7 +235,7 @@ describe('#removeDocument', () => {
|
||||
// Add a child for testing
|
||||
const newDocument = await Document.create({
|
||||
parentDocumentId: document.id,
|
||||
atlasId: collection.id,
|
||||
collectionId: collection.id,
|
||||
teamId: collection.teamId,
|
||||
userId: collection.creatorId,
|
||||
lastModifiedById: collection.creatorId,
|
||||
@ -257,7 +257,7 @@ describe('#removeDocument', () => {
|
||||
|
||||
const collectionDocuments = await Document.findAndCountAll({
|
||||
where: {
|
||||
atlasId: collection.id,
|
||||
collectionId: collection.id,
|
||||
},
|
||||
});
|
||||
expect(collectionDocuments.count).toBe(2);
|
||||
|
Reference in New Issue
Block a user