mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-12 12:51:38 -05:00
ee85d948e2
GitOrigin-RevId: ef2ef77e26df59d1af3df6dc664e284d3c70102d
17 lines
385 B
JavaScript
17 lines
385 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
|
|
})
|
|
})
|