passport-dingtalk.test.js 476 Bytes
'use strict';
const request = require('supertest');
const mock = require('egg-mock');

describe('test/passport-dingtalk.test.js', () => {
  let app;
  before(() => {
    app = mock.app({
      baseDir: 'apps/passport-dingtalk-test',
    });
    return app.ready();
  });

  after(() => app.close());
  afterEach(mock.restore);

  it('should GET /', () => {
    return request(app.callback())
      .get('/')
      .expect('hi, passportDingtalk')
      .expect(200);
  });
});