smc-hub
Version:
CoCalc: Backend webserver component
35 lines (28 loc) • 914 B
JavaScript
// Generated by CoffeeScript 2.5.1
(function() {
//########################################################################
// This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
// License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
//########################################################################
/*
Some very, very basic API tests
*/
var api, expect, setup, teardown;
api = require('./apitest');
({setup, teardown} = api);
expect = require('expect');
describe('does a ping api call', function() {
before(setup);
after(teardown);
return it("does the ping", function(done) {
return api.call({
event: 'ping',
cb: function(err, resp) {
expect(resp != null ? resp.event : void 0).toBe('pong');
return done(err);
}
});
});
});
}).call(this);
//# sourceMappingURL=basic.js.map