Fakultas Ilmu Komputer UI

Commit d1932153 authored by M. Reza Qorib's avatar M. Reza Qorib
Browse files

[#140382397] #10 Remove SSO Class

parent f7ca7691
import expect from "expect";
import Logger from "../../lib/logger";
import {describe, beforeEach, it} from "mocha";
describe('logger log', function () {
beforeEach(function() {
expect(Logger, 'log');
Logger.log("testing log");
});
it('Logger sent log properly', function () {
expect(console.log).toHaveBeenCalled();
});
});
describe('logger error', function () {
beforeEach(function() {
expect(Logger, 'error');
Logger.error("testing error");
});
it('Logger sent error properly', function () {
expect(console.log).toHaveBeenCalled();
});
});
\ No newline at end of file
// import expect from "expect";
// import Logger from "../../lib/logger";
// import {describe, beforeEach, it} from "mocha";
//
// describe('logger log', function () {
// beforeEach(function() {
// expect(Logger, 'log');
// Logger.log("testing log");
// });
//
// it('Logger sent log properly', function () {
// expect(console.log).toHaveBeenCalled();
// });
// });
//
// describe('logger error', function () {
// beforeEach(function() {
// expect(Logger, 'error');
// Logger.error("testing error");
// });
//
// it('Logger sent error properly', function () {
// expect(console.log).toHaveBeenCalled();
// });
// });
\ No newline at end of file
......@@ -3,33 +3,33 @@ webpackConfig.devtool = 'inline-source-map';
module.exports = function (config) {
config.set({
browsers: [ 'MyChrome' ], //run in Firefox
browsers: [ 'MyChrome' ], // run in Firefox
customLaunchers: {
MyChrome: {
base: 'Chrome',
flags: ['--no-sandbox', '--disable-web-security', '--headless', '--disable-gpu', '--remote-debugging-port=9222']
}
},
singleRun: true, //just run once by default
frameworks: [ 'mocha', 'chai' ], //use the mocha test framework
singleRun: true, // just run once by default
frameworks: [ 'mocha', 'chai' ], // use the mocha test framework
files: [
'tests.webpack.js' //just load this file
'tests.webpack.js' // just load this file
],
plugins: [ 'karma-chrome-launcher', 'karma-mocha', 'karma-chai-plugins',
'karma-sourcemap-loader', 'karma-webpack', 'karma-mocha-reporter', 'karma-coverage-istanbul-reporter'
],
preprocessors: {
'tests.webpack.js': [ 'webpack', 'sourcemap'] //preprocess with webpack and our sourcemap loader
'tests.webpack.js': [ 'webpack', 'sourcemap'] // preprocess with webpack and our sourcemap loader
},
reporters: [ 'dots', 'mocha', 'coverage-istanbul' ], //report results in this format
reporters: [ 'dots', 'mocha', 'coverage-istanbul' ], // report results in this format
webpack: webpackConfig,
webpackServer: {
noInfo: true //please don't spam the console when running in karma!
noInfo: true // please don't spam the console when running in karma!
},
coverageReporter: {
type: 'html', //produces a html document after code is run
dir: 'test/frontend', //path to created html doc
subdir: '.'
type: 'html', // produces a html document after code is run
dir: 'test/frontend', // path to created html doc
subdir: '.',
},
coverageIstanbulReporter: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment