Opal-Estate-Pro/node_modules/tiny-lr/src_test/http.js
2019-09-13 11:27:52 +07:00

19 lines
559 B
JavaScript

'use strict';
var _app = require('../examples/express/app');
var _app2 = _interopRequireDefault(_app);
var _supertest = require('supertest');
var _supertest2 = _interopRequireDefault(_supertest);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
describe('mocha spec examples', function () {
describe('tinylr', function () {
it('GET /', function (done) {
(0, _supertest2.default)(_app2.default).get('/').expect('Content-Type', /text\/html/).expect(/Testing/).expect(200, done);
});
});
});