Skip context tests until they migrate to runtimeAPI structure

This commit is contained in:
Nick O'Leary 2018-07-29 23:54:43 +01:00
parent 9c4a712dc7
commit 9d507b09ca
2 changed files with 7 additions and 4 deletions

View File

@ -26,6 +26,9 @@ var Context = require("../../../../red/runtime/nodes/context");
var Util = require("../../../../red/runtime/util"); var Util = require("../../../../red/runtime/util");
describe("api/admin/context", function() { describe("api/admin/context", function() {
it.skip("NEEDS TESTS WRITING",function() {});
});
/*
var app = undefined; var app = undefined;
before(function (done) { before(function (done) {
@ -58,7 +61,7 @@ describe("api/admin/context", function() {
}, },
util: Util util: Util
}); });
Context.init({ Context.init({
contextStorage: { contextStorage: {
memory0: { memory0: {
@ -103,7 +106,7 @@ describe("api/admin/context", function() {
function check_scope(scope, prefix, id) { function check_scope(scope, prefix, id) {
describe('# '+scope, function () { describe('# '+scope, function () {
var xid = id ? ("/"+id) : ""; var xid = id ? ("/"+id) : "";
it('should return '+scope+' contexts', function (done) { it('should return '+scope+' contexts', function (done) {
request(app) request(app)
.get('/context/'+scope+xid) .get('/context/'+scope+xid)
@ -229,3 +232,4 @@ describe("api/admin/context", function() {
}); });
}); });
*/

View File

@ -15,6 +15,5 @@
**/ **/
describe("runtime-api/context", function() { describe("runtime-api/context", function() {
it.skip("NEEDS TESTS WRITING",function() {});
}); });