first commit

This commit is contained in:
2025-04-24 13:11:28 +08:00
commit ff9c54d5e4
5960 changed files with 834111 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
'use strict'
const DocFixtures = require('./docs').docs
exports.chunks = {
chunkOne: {
id: 1000000,
doc_id: DocFixtures.initializedProject.id,
start_version: 0,
end_version: 1,
end_timestamp: new Date('2032-01-01'),
},
}
exports.histories = {
chunkOne: {
projectId: DocFixtures.initializedProject.id,
chunkId: '1000000',
json: { snapshot: { files: {} }, changes: [] },
},
}

View File

@@ -0,0 +1,9 @@
'use strict'
// Test docs are no longer inserted in the database. Only their ids are now
// relevant as they are used in history chunks.
exports.docs = {
uninitializedProject: { id: '1000000' },
initializedProject: { id: '1000001' },
}

View File

@@ -0,0 +1,7 @@
'use strict'
exports.dbSpecs = {
chunks: Object.values(require('./chunks').chunks),
histories: Object.values(require('./chunks').histories),
docs: Object.values(require('./docs').docs),
}