first commit
This commit is contained in:
@@ -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: [] },
|
||||
},
|
||||
}
|
||||
@@ -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' },
|
||||
}
|
||||
@@ -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),
|
||||
}
|
||||
Reference in New Issue
Block a user