text: import expect from 'expect.js';
  
  import Gootenberg from '../index.js';
  import credentials from '../../credentials.json';
  
  const TEST_DOCS = {
    write: '1vU03WweELqduP-MCTy6wD44ztOibHQt7dm3KPCOCaEo',
  };
  
  describe('docs', function() {
    let goot;
  
    before(async function() {
      goot = new Gootenberg();
      await goot.auth(credentials);
    });
  
    it('Appends to a doc', async function() {
      const now = new Date().toISOString();
      await goot.docs.append(TEST_DOCS.write, `\n${now}`);
  
      const text = await goot.drive.export(TEST_DOCS.write);
  
      expect(text.endsWith(now)).to.be(true);
    });
  });
  