2019-04-07 23:08:08 +02:00
|
|
|
import * as t from 'lib0/testing.js'
|
|
|
|
|
|
|
|
|
|
import {
|
2019-05-28 14:18:20 +02:00
|
|
|
contentRefs,
|
|
|
|
|
readContentBinary,
|
|
|
|
|
readContentDeleted,
|
|
|
|
|
readContentString,
|
|
|
|
|
readContentJSON,
|
|
|
|
|
readContentEmbed,
|
|
|
|
|
readContentType,
|
|
|
|
|
readContentFormat
|
2019-04-07 23:08:08 +02:00
|
|
|
} from '../src/internals.js'
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param {t.TestCase} tc
|
|
|
|
|
*/
|
|
|
|
|
export const testStructReferences = tc => {
|
2019-05-28 14:18:20 +02:00
|
|
|
t.assert(contentRefs.length === 8)
|
|
|
|
|
t.assert(contentRefs[1] === readContentDeleted)
|
|
|
|
|
t.assert(contentRefs[2] === readContentJSON)
|
|
|
|
|
t.assert(contentRefs[3] === readContentBinary)
|
|
|
|
|
t.assert(contentRefs[4] === readContentString)
|
|
|
|
|
t.assert(contentRefs[5] === readContentEmbed)
|
|
|
|
|
t.assert(contentRefs[6] === readContentFormat)
|
|
|
|
|
t.assert(contentRefs[7] === readContentType)
|
2019-04-07 23:08:08 +02:00
|
|
|
}
|