mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
* [libraries] move all the unit tests into test/unit * [settings] remove empty test file * [mongo-utils] remove test setup as there are no tests * [libraries] ensure that all libraries with tests have test/setup.js * [monorepo] remove test step from Cloud build for libraries without tests GitOrigin-RevId: b9a0a8a3330db7d8646c7a272b03fbb8c5e44bc0
18 lines
388 B
JavaScript
18 lines
388 B
JavaScript
'use strict'
|
|
|
|
const { expect } = require('chai')
|
|
const ot = require('../..')
|
|
const Label = ot.Label
|
|
|
|
describe('Label', function () {
|
|
it('can be created by an anonymous author', function () {
|
|
const label = Label.fromRaw({
|
|
text: 'test',
|
|
authorId: null,
|
|
timestamp: '2016-01-01T00:00:00Z',
|
|
version: 123,
|
|
})
|
|
expect(label.getAuthorId()).to.be.null
|
|
})
|
|
})
|