Explorar o código

minor changes to tests, package.json

Brandon Wong %!s(int64=5) %!d(string=hai) anos
pai
achega
57c2962bea

+ 1 - 1
dnodemongo/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@catallaxy/$foldername",
-  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://www.catallaxy.com/)",
+  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://catallaxy.rcgt.com/)",
   "main": "build/service.js",
   "version": "0.1.0",
   "scripts": {

+ 1 - 1
elmserver/server/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@catallaxy/$foldername",
-  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://www.catallaxy.com/)",
+  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://catallaxy.rcgt.com/)",
   "main": "build/service.js",
   "version": "0.1.0",
   "scripts": {

+ 1 - 1
front/epics/index.js

@@ -12,7 +12,7 @@ const rootEpic = combineEpics(
 
 // delete example
 export default function exampleEpic(action$) {
-    return action$.filter(x => x.type === 'PING')
+    return action$.ofType('PING')
         .mapTo({type: 'PONG'});
 };
 

+ 1 - 1
frontend-blank/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@catallaxy/$foldername",
-  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://www.catallaxy.com/)",
+  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://catallaxy.rcgt.com/)",
   "version": "0.1.0",
   "main": "index.js",
   "scripts": {

+ 16 - 4
frontend-blank/test/suite.js

@@ -7,10 +7,22 @@ const tapetest = _test(tape);
 import * as reducers from '../src/reducers/index.js';
 import * as actions from '../src/actions.js';
 
-
-tapetest('test', async function testProgram(t) {
-    t.pass('empty test file');
-    t.end();
+tapetest('test', async function testProgram(assert) {
+    try {
+        assert.pass('empty test file');
+    }
+    catch(e) {
+        console.log('error in', assert.name, e);
+        assert.fail(`error in ${assert.name}`);
+    }
+    assert.end();
 });
 
 
+function waitPro(n = 1000) {
+    return new Promise(function pro(resolve, reject) {
+        setTimeout(resolve, n);
+    });
+}
+
+

+ 1 - 1
frontend/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@catallaxy/$foldername",
-  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://www.catallaxy.com/)",
+  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://catallaxy.rcgt.com/)",
   "version": "0.1.0",
   "main": "index.js",
   "scripts": {

+ 16 - 4
frontend/test/suite.js

@@ -7,10 +7,22 @@ const tapetest = _test(tape);
 import * as reducers from '../src/reducers/index.js';
 import * as actions from '../src/actions.js';
 
-
-tapetest('test', async function testProgram(t) {
-    t.pass('empty test file');
-    t.end();
+tapetest('test', async function testProgram(assert) {
+    try {
+        assert.pass('empty test file');
+    }
+    catch(e) {
+        console.log('error in', assert.name, e);
+        assert.fail(`error in ${assert.name}`);
+    }
+    assert.end();
 });
 
 
+function waitPro(n = 1000) {
+    return new Promise(function pro(resolve, reject) {
+        setTimeout(resolve, n);
+    });
+}
+
+

+ 1 - 1
react/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@catallaxy/$foldername",
-  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://www.catallaxy.com/)",
+  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://catallaxy.rcgt.com/)",
   "version": "0.1.0",
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1",

+ 1 - 1
redux/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@catallaxy/$foldername",
-  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://www.catallaxy.com/)",
+  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://catallaxy.rcgt.com/)",
   "version": "0.1.0",
   "scripts": {
     "test": "node test-build/main.js",

+ 16 - 4
redux/test/main.js

@@ -7,10 +7,22 @@ const tapetest = _test(tape);
 import * as reducers from '../build/reducers/index.js';
 import * as actions from '../build/actions.js';
 
-
-tapetest('test', async function testProgram(t) {
-    t.pass('empty test file');
-    t.end();
+tapetest('test', async function testProgram(assert) {
+    try {
+        assert.pass('empty test file');
+    }
+    catch(e) {
+        console.log('error in', assert.name, e);
+        assert.fail(`error in ${assert.name}`);
+    }
+    assert.end();
 });
 
 
+function waitPro(n = 1000) {
+    return new Promise(function pro(resolve, reject) {
+        setTimeout(resolve, n);
+    });
+}
+
+

+ 1 - 1
regular/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@catallaxy/$foldername",
-  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://www.catallaxy.com/)",
+  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://catallaxy.rcgt.com/)",
   "version": "0.1.0",
   "main": "index.js",
   "scripts": {

+ 16 - 3
regular/test/main.js

@@ -5,9 +5,22 @@ import _test from 'tape-promise';
 const tapetest = _test(tape);
 
 
-tapetest('test', async function testProgram(t) {
-    t.pass('empty test file');
-    t.end();
+tapetest('test', async function testProgram(assert) {
+    try {
+        assert.pass('empty test file');
+    }
+    catch(e) {
+        console.log('error in', assert.name, e);
+        assert.fail(`error in ${assert.name}`);
+    }
+    assert.end();
 });
 
 
+function waitPro(n = 1000) {
+    return new Promise(function pro(resolve, reject) {
+        setTimeout(resolve, n);
+    });
+}
+
+

+ 1 - 1
service/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@catallaxy/$foldername",
-  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://www.catallaxy.com/)",
+  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://catallaxy.rcgt.com/)",
   "main": "build/service.js",
   "version": "0.1.0",
   "scripts": {

+ 2 - 2
service/test/service.js

@@ -18,8 +18,8 @@ tapetest('service', async function testService(assert) {
         console.log('data', data);
     }
     catch(e) {
-        console.log('error somewhere', e);
-        assert.fail('error somewhere');
+        console.log('error in', assert.name, e);
+        assert.fail(`error in ${assert.name}`);
     }
 
     assert.end();

+ 1 - 1
socket/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@catallaxy/$foldername",
-  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://www.catallaxy.com/)",
+  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://catallaxy.rcgt.com/)",
   "version": "0.1.0",
   "main": "build/server.js",
   "scripts": {

+ 2 - 2
socket/test/server.js

@@ -21,8 +21,8 @@ tapetest('test server', async function testServer(assert) {
         assert.equal(data, 'working', 'received message from server');
     }
     catch(e) {
-        console.log('error somewhere', e);
-        assert.fail('error somewhere');
+        console.log('error in', assert.name, e);
+        assert.fail(`error in ${assert.name}`);
     }
 
     assert.end();

+ 1 - 1
webpack/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@catallaxy/$foldername",
-  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://www.catallaxy.com/)",
+  "author": "Brandon Wong <wong.brandon@rcgt.com> (https://catallaxy.rcgt.com/)",
   "version": "0.1.0",
   "main": "build/main.js",
   "scripts": {