label.test.js 388 B

1234567891011121314151617
  1. 'use strict'
  2. const { expect } = require('chai')
  3. const ot = require('../..')
  4. const Label = ot.Label
  5. describe('Label', function () {
  6. it('can be created by an anonymous author', function () {
  7. const label = Label.fromRaw({
  8. text: 'test',
  9. authorId: null,
  10. timestamp: '2016-01-01T00:00:00Z',
  11. version: 123,
  12. })
  13. expect(label.getAuthorId()).to.be.null
  14. })
  15. })