Skip to content

Commit

Permalink
Remove the error from client.spec.ts and use of alsatian --tap output
Browse files Browse the repository at this point in the history
Currently alsatian's exit code is always 0 when requesting it to use
--tap formatted output. Hopefully that will be fixed soon,
see [alsatian issue 334](alsatian-test/alsatian#334).
  • Loading branch information
winksaville committed Mar 13, 2017
1 parent 36990b1 commit e17c678
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
30 changes: 15 additions & 15 deletions dist/client/bundle.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};

/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {

/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;

/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };

/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/
/******/ // Flag the module as loaded
/******/ module.l = true;

/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }


/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;

/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;

/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };

/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
Expand All @@ -46,7 +46,7 @@
/******/ });
/******/ }
/******/ };

/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
Expand All @@ -55,13 +55,13 @@
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };

/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };

/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";

/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 6);
/******/ })
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"_build:client.spec": "tsc -p src/client/tsconfig.spec.json",
"_build": "yarn _build:common && yarn _build:server && yarn _build:client",
"_build:spec": "yarn _build:common.spec && yarn _build:server.spec && yarn _build:client.spec",
"_test:common": "DEBUG=common.spec,nop.spec alsatian 'build/common/**/*.spec.js' --tap",
"_test:server": "DEBUG=server.spec alsatian 'build/server/**/*.spec.js' --tap",
"_test:client": "DEBUG=client.spec alsatian 'build/client/**/*.spec.js' --tap",
"_test:common": "DEBUG=common.spec,nop.spec alsatian 'build/common/**/*.spec.js'",
"_test:server": "DEBUG=server.spec alsatian 'build/server/**/*.spec.js'",
"_test:client": "DEBUG=client.spec alsatian 'build/client/**/*.spec.js'",
"pretest": "yarn _build && yarn _build:spec",
"test": "tree build && tree dist && yarn _test:common && yarn _test:server && yarn _test:client",
"test": "yarn _test:common && yarn _test:server && yarn _test:client",
"test:travis": "yarn test",
"predev": "tsc -p utils/tsconfig.json",
"dev": "node build/start-dev.js"
Expand Down
2 changes: 1 addition & 1 deletion src/client/client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class ClientTests {
console.log(`testWdNop caught e=${e}`);
Expect(false).toBe(true); // Always fail.
}
Expect(false).toBe(true); // Always fail.
//Expect(false).toBe(true); // Always fail.

debug('testWdNop:-');
}
Expand Down

0 comments on commit e17c678

Please sign in to comment.