Revert "Renamed Document#atlasId finally"
This commit is contained in:
@ -119,7 +119,7 @@ describe('#updateDocument', () => {
|
||||
// Add a child for testing
|
||||
const newDocument = await Document.create({
|
||||
parentDocumentId: document.id,
|
||||
collectionId: collection.id,
|
||||
atlasId: collection.id,
|
||||
teamId: collection.teamId,
|
||||
userId: collection.creatorId,
|
||||
lastModifiedById: collection.creatorId,
|
||||
@ -155,7 +155,7 @@ describe('#moveDocument', () => {
|
||||
// Add a child for testing
|
||||
const newDocument = await Document.create({
|
||||
parentDocumentId: document.id,
|
||||
collectionId: collection.id,
|
||||
atlasId: collection.id,
|
||||
teamId: collection.teamId,
|
||||
userId: collection.creatorId,
|
||||
lastModifiedById: collection.creatorId,
|
||||
@ -190,7 +190,7 @@ describe('#removeDocument', () => {
|
||||
// Verify that the document was removed
|
||||
const collectionDocuments = await Document.findAndCountAll({
|
||||
where: {
|
||||
collectionId: collection.id,
|
||||
atlasId: collection.id,
|
||||
},
|
||||
});
|
||||
expect(collectionDocuments.count).toBe(1);
|
||||
@ -202,7 +202,7 @@ describe('#removeDocument', () => {
|
||||
// Add a child for testing
|
||||
const newDocument = await Document.create({
|
||||
parentDocumentId: document.id,
|
||||
collectionId: collection.id,
|
||||
atlasId: collection.id,
|
||||
teamId: collection.teamId,
|
||||
userId: collection.creatorId,
|
||||
lastModifiedById: collection.creatorId,
|
||||
@ -218,7 +218,7 @@ describe('#removeDocument', () => {
|
||||
expect(collection.documentStructure.length).toBe(1);
|
||||
const collectionDocuments = await Document.findAndCountAll({
|
||||
where: {
|
||||
collectionId: collection.id,
|
||||
atlasId: collection.id,
|
||||
},
|
||||
});
|
||||
expect(collectionDocuments.count).toBe(1);
|
||||
@ -230,7 +230,7 @@ describe('#removeDocument', () => {
|
||||
// Add a child for testing
|
||||
const newDocument = await Document.create({
|
||||
parentDocumentId: document.id,
|
||||
collectionId: collection.id,
|
||||
atlasId: collection.id,
|
||||
teamId: collection.teamId,
|
||||
userId: collection.creatorId,
|
||||
lastModifiedById: collection.creatorId,
|
||||
@ -251,7 +251,7 @@ describe('#removeDocument', () => {
|
||||
|
||||
const collectionDocuments = await Document.findAndCountAll({
|
||||
where: {
|
||||
collectionId: collection.id,
|
||||
atlasId: collection.id,
|
||||
},
|
||||
});
|
||||
expect(collectionDocuments.count).toBe(2);
|
||||
|
Reference in New Issue
Block a user