mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
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:
1 parent
24397b75cc
commit
e5e82ba2fb
10 files changed
-637
No files matched your search
@@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user