UNPKG

smc-hub

Version:

CoCalc: Backend webserver component

49 lines (34 loc) 1.26 kB
// 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 //######################################################################## var DEBUG, log, pgtest, ref; /* Test suite for backend KuCalc-related functionality. WARNING: The server timezone **MUST BE** UTC everywhere, or tests will fail! COPYRIGHT : (c) 2017 SageMath, Inc. LICENSE : AGPLv3 */ require('coffee2-cache'); pgtest = require('../postgres/pgtest'); DEBUG = !!((ref = process.env['SMC_DEBUG']) != null ? ref : false); if (DEBUG) { log = function(...args) { return console.log('kucalctest: ', ...args); }; } else { log = function() {}; } exports.log = log; exports.db = function() { return pgtest.db; }; // For now just re-export what is done in pgtest. We may have to add more later. exports.setup = pgtest.setup; exports.teardown = pgtest.teardown; exports.create_accounts = pgtest.create_accounts; exports.create_projects = pgtest.create_projects; }).call(this); //# sourceMappingURL=init.js.map