mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 16:42:56 +00:00
test: move to @testdeck/mocha
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {expect} from 'chai';
|
||||
import {suite, test} from 'mocha-typescript';
|
||||
import {suite, test} from '@testdeck/mocha';
|
||||
import {
|
||||
deleteUndefinedProperties,
|
||||
isNodeEnvironment,
|
||||
|
||||
@@ -16,7 +16,7 @@ import chai from 'chai';
|
||||
import {expect} from 'chai';
|
||||
import chaiAsPromised from 'chai-as-promised';
|
||||
import chaiSpies from 'chai-spies';
|
||||
import {suite} from 'mocha-typescript';
|
||||
import {suite, test} from '@testdeck/mocha';
|
||||
import {Logger} from '../src/logger';
|
||||
import {AddLogLevel} from '../src/transformations/add-log-level';
|
||||
import {DummyTransport} from './dummyTransport';
|
||||
@@ -443,7 +443,7 @@ export class LoggerSpec {
|
||||
const stub = LoggerSpec.sandbox.on(console, 'log', () => {
|
||||
// noop
|
||||
});
|
||||
const applyTransformationsSpy = LoggerSpec.sandbox.on(Logger, 'applyTransformations');
|
||||
const applyTransformationsSpy = LoggerSpec.sandbox.on(new Logger(), 'applyTransformations');
|
||||
|
||||
Logger.log('Foobar');
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {expect} from 'chai';
|
||||
import {suite, test} from 'mocha-typescript';
|
||||
import {suite, test} from '@testdeck/mocha';
|
||||
import {SMTP} from '../src/smtp';
|
||||
|
||||
@suite()
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {expect} from 'chai';
|
||||
import {suite, test} from 'mocha-typescript';
|
||||
import {suite, test} from '@testdeck/mocha';
|
||||
import {AddLogLevel} from '../../src/transformations/add-log-level';
|
||||
|
||||
@suite()
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {expect} from 'chai';
|
||||
import {suite, test} from 'mocha-typescript';
|
||||
import {suite, test} from '@testdeck/mocha';
|
||||
import {Colorize} from '../../src/transformations/colorize';
|
||||
|
||||
@suite()
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {expect} from 'chai';
|
||||
import {suite, test} from 'mocha-typescript';
|
||||
import {suite, test} from '@testdeck/mocha';
|
||||
import {Timestamp} from '../../src/transformations/timestamp';
|
||||
import moment = require('moment');
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {expect} from 'chai';
|
||||
import {suite, test} from 'mocha-typescript';
|
||||
import {suite, test} from '@testdeck/mocha';
|
||||
import {isTransportWithVerification} from '../src/common';
|
||||
import {DummyTransport, VerifiableDummyTransport} from './dummyTransport';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user