Remove inventoryImports plugin

Remove defunct and coding horror inventoryImports.  The functionality
provided in it should be added as an optional extra to subspace_storage.
This commit is contained in:
Hornwitser committed 2020-10-23 21:22:45 +02:00
1 parent 24397b75cc
commit e5e82ba2fb
10 files changed
-637

No files matched your search

-22
View File
@@ -1,22 +0,0 @@
"use strict";
var assert = require("assert");
var libObjectOps = require("@clusterio/lib/object_ops");
describe("lib/object_ops", function(){
describe("deepclone()", function(){
it("deep clones javascript objects", function(){
var obj1 = { hello: "world", cat: { legs: 4, name: "Kitty", colors: ["brown", "yellow", "purple"] }};
var obj2 = {};
obj2 = libObjectOps.deepclone(obj1);
obj1.cat.colors = "black";
assert.equal(obj1.cat.colors, "black");
assert.equal(obj2.cat.colors[1], "yellow");
});
it("throws on non JSON parameters", function(){
assert.throws(function(){
let y = libObjectOps.deepclone(libObjectOps.deepclone);
});
});
});
});