Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix deprecation warnings

  • Loading branch information...
commit 5b42fabf4444b07a668d6011f2d29c93b33b9074 1 parent 61f5a33
Paul Baumgart paulbaumgart authored
Showing with 107 additions and 107 deletions.
  1. +1 −1  engines/default/lib/binary.js
  2. +1 −1  engines/default/lib/http-engine.js
  3. +2 −2 engines/default/lib/worker.js
  4. +1 −1  engines/rhino/lib/event-queue.js
  5. +1 −1  engines/rhino/lib/fs-base.js
  6. +1 −1  engines/rhino/lib/http-client-engine.js
  7. +1 −1  lib/events.js
  8. +3 −3 lib/narwhal/compile.js
  9. +3 −3 lib/narwhal/env.js
  10. +2 −2 lib/narwhal/json.js
  11. +1 −1  lib/narwhal/repl-worker.js
  12. +1 −1  lib/narwhal/repl.js
  13. +3 −3 lib/narwhal/server.js
  14. +3 −3 lib/test/runner.js
  15. +3 −3 packages/tusk/lib/tusk.js
  16. +2 −2 packages/tusk/lib/tusk/commands/bin.js
  17. +2 −2 packages/tusk/lib/tusk/commands/catalog.js
  18. +2 −2 packages/tusk/lib/tusk/commands/clone.js
  19. +3 −3 packages/tusk/lib/tusk/commands/consolidate.js
  20. +3 −3 packages/tusk/lib/tusk/commands/engine.js
  21. +2 −2 packages/tusk/lib/tusk/commands/init.js
  22. +3 −3 packages/tusk/lib/tusk/commands/install.js
  23. +3 −3 packages/tusk/lib/tusk/commands/list.js
  24. +3 −3 packages/tusk/lib/tusk/commands/reheat.js
  25. +2 −2 packages/tusk/lib/tusk/commands/remove.js
  26. +3 −3 packages/tusk/lib/tusk/commands/search.js
  27. +1 −1  packages/tusk/lib/tusk/commands/update.js
  28. +3 −3 packages/tusk/lib/tusk/update.js
  29. +1 −1  packages/zip/tests/zip-tests.js
  30. +2 −2 tests/args/domain.js
  31. +1 −1  tests/args/options.js
  32. +1 −1  tests/args/shifting.js
  33. +2 −2 tests/args/validation.js
  34. +1 −1  tests/commonjs/file/dirname.js
  35. +1 −1  tests/commonjs/file/extension.js
  36. +1 −1  tests/commonjs/file/normal.js
  37. +1 −1  tests/commonjs/file/path.js
  38. +1 −1  tests/commonjs/file/relative.js
  39. +1 −1  tests/commonjs/file/resolve.js
  40. +1 −1  tests/commonjs/modules/all-tests.js
  41. +1 −1  tests/events.js
  42. +1 −1  tests/file/fnmatch.js
  43. +1 −1  tests/file/match.js
  44. +1 −1  tests/global/date-parse.js
  45. +1 −1  tests/os/parse-fuzzer.js
  46. +1 −1  tests/package/_files/test-sea/lib/main.js
  47. +3 −3 tests/package/using.js
  48. +2 −2 tests/printf.js
  49. +2 −2 tests/promise.js
  50. +4 −4 tests/sandbox/reload.js
  51. +1 −1  tests/uri.js
  52. +1 −1  tests/util/all-tests.js
  53. +1 −1  tests/util/array.js
  54. +1 −1  tests/util/array/is-arguments.js
  55. +1 −1  tests/util/array/is-array-like.js
  56. +1 −1  tests/util/case.js
  57. +1 −1  tests/util/collection.js
  58. +1 −1  tests/util/complete.js
  59. +1 −1  tests/util/eq.js
  60. +1 −1  tests/util/expand.js
  61. +1 −1  tests/util/object.js
  62. +1 −1  tests/util/operator.js
  63. +1 −1  tests/util/range.js
  64. +1 −1  tests/util/repr.js
  65. +1 −1  tests/util/string.js
  66. +1 −1  tests/util/unique.js
  67. +1 −1  tests/util/update.js
2  engines/default/lib/binary.js
View
@@ -192,7 +192,7 @@ var ByteString = exports.ByteString = function() {
this._length = arguments[2];
}
else {
- var util = require("util");
+ var util = require("narwhal/util");
throw new Error("Illegal arguments to ByteString constructor: " + util.repr(arguments));
}
2  engines/default/lib/http-engine.js
View
@@ -1,2 +1,2 @@
require("narwhal").deprecated("use http-client-engine instead of http-engine");
-require("util").update(exports. require("http-client-engine"));
+require("narwhal/util").update(exports. require("http-client-engine"));
4 engines/default/lib/worker.js
View
@@ -63,12 +63,12 @@ function createWorker(scriptName, setup, workerName){
var workerQueue,
workerGlobal = createEnvironment();
- var sandbox = workerGlobal.require("sandbox").Sandbox({
+ var sandbox = workerGlobal.require("narwhal/sandbox").Sandbox({
system: workerGlobal.system,
loader: workerGlobal.require.loader,
modules: {
"event-queue": workerGlobal.require("event-queue"),
- packages: workerGlobal.require("packages")
+ packages: workerGlobal.require("narwhal/packages")
},
debug: workerGlobal.require.loader.debug
});
2  engines/rhino/lib/event-queue.js
View
@@ -5,6 +5,6 @@ require("narwhal").deprecated(
"used by the event-loop and event-loop-setup modules.");
var EXPORTS = require("event-loop");
-var UTIL = require("util");
+var UTIL = require("narwhal/util");
UTIL.update(exports, EXPORTS);
2  engines/rhino/lib/fs-base.js
View
@@ -35,7 +35,7 @@ var BOOTSTRAP = require("fs-bootstrap");
var IO = require("io").IO;
var OS = require('os');
var SYSTEM = require("system");
-var UTIL = require("util");
+var UTIL = require("narwhal/util");
var javaPath = function (path) { // XXX was JavaPath in file-engine
return new java.io.File(String(path) || ".");
2  engines/rhino/lib/http-client-engine.js
View
@@ -3,7 +3,7 @@
// -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License
var IO = require("io").IO,
- UTIL = require("util");
+ UTIL = require("narwhal/util");
exports.IO = function (url) {
return new IO(
2  lib/events.js
View
@@ -10,7 +10,7 @@
Typical usage:
- var Q = require("promise");
+ var Q = require("narwhal/promise");
var {promise, resolve, reject} = Q.defer();
asyncOperation(function () {
try {
6 lib/narwhal/compile.js
View
@@ -3,9 +3,9 @@
var SYSTEM = require("system");
var FILE = require("file");
-var PACKAGES = require("packages");
-var UTIL = require("util");
-var TERM = require("term");
+var PACKAGES = require("narwhal/packages");
+var UTIL = require("narwhal/util");
+var TERM = require("narwhal/term");
var Bundler = require("./server").Bundler;
exports.ids = function (system, packages) {
6 lib/narwhal/env.js
View
@@ -4,9 +4,9 @@
var file = require("file");
var system = require("system");
-var packages = require("packages");
-var util = require("util");
-var args = require("args");
+var packages = require("narwhal/packages");
+var util = require("narwhal/util");
+var args = require("narwhal/args");
var parser = exports.parser = new args.Parser();
4 lib/narwhal/json.js
View
@@ -2,9 +2,9 @@
// -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License
var os = require("os");
-var args = require("args");
+var args = require("narwhal/args");
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
var system = require("system");
var fs = require("file");
2  lib/narwhal/repl-worker.js
View
@@ -6,7 +6,7 @@ var system = require("system");
try { var readline = require("readlineJS").readline; } catch (e) {}
try { var Narcissus = require("narcissus/parse"); } catch (e) {}
-var util = require('util'),
+var util = require("narwhal/util"),
queue = require("event-queue");
var PROMPT_NORMAL = "js> ",
2  lib/narwhal/repl.js
View
@@ -3,7 +3,7 @@
// -- kriszyp Kris Zyp TODO
var system = require("system"),
- util = require('util'),
+ util = require("narwhal/util"),
replEval = eval;
// fix quit(), I have no idea why the Rhino shell provided quit doesn't work,
6 lib/narwhal/server.js
View
@@ -4,12 +4,12 @@
var SYSTEM = require("system");
var FILE = require("file");
-var UTIL = require("util");
+var UTIL = require("narwhal/util");
var JSMIN = require("jsmin");
var JACKUTILS = require("jack/utils");
-var Sandbox = require("sandbox").Sandbox;
-var Loader = require("loader").Loader;
+var Sandbox = require("narwhal/sandbox").Sandbox;
+var Loader = require("narwhal/loader").Loader;
var AttenuatedLoader = require("loader/attenuated").AttenuatedLoader;
var contentType = "application/x-javascript";
6 lib/test/runner.js
View
@@ -7,12 +7,12 @@ require("narwhal").deprecated(
var system = require('system');
var file = require('file');
-var util = require('util');
+var util = require("narwhal/util");
var assert = require("./assert");
-var stream = require('term').stream;
+var stream = require("narwhal/term").stream;
-var args = require('args');
+var args = require("narwhal/args");
var parser = exports.parser = new args.Parser();
parser.option('--no-color', 'color').def(true).set(false);
parser.option('--loop', 'loop').def(false).set(true);
6 packages/tusk/lib/tusk.js
View
@@ -4,15 +4,15 @@
var system = require("system");
var fs = require("file");
-var packages = require("packages");
-var util = require("util");
+var packages = require("narwhal/packages");
+var util = require("narwhal/util");
var json = require("json");
var http = require("http-client");
exports.catalogVersion = 2;
exports.minCatalogVersion = 2;
-var args = require("args");
+var args = require("narwhal/args");
var parser = exports.parser = new args.Parser();
parser.help('A Narwhal project package manager.');
4 packages/tusk/lib/tusk/commands/bin.js
View
@@ -1,9 +1,9 @@
// -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License
-var util = require('util');
+var util = require("narwhal/util");
var tusk = require('../../tusk');
-var args = require('args');
+var args = require("narwhal/args");
var parser = exports.parser = new args.Parser();
4 packages/tusk/lib/tusk/commands/catalog.js
View
@@ -2,8 +2,8 @@
// -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License
var tusk = require("../../tusk");
-var util = require("util");
-var args = require("args");
+var util = require("narwhal/util");
+var args = require("narwhal/args");
var parser = exports.parser = new args.Parser();
4 packages/tusk/lib/tusk/commands/clone.js
View
@@ -3,8 +3,8 @@
var tusk = require("../../tusk");
var os = require("os");
-var util = require("util");
-var args = require("args");
+var util = require("narwhal/util");
+var args = require("narwhal/args");
var parser = exports.parser = new args.Parser();
6 packages/tusk/lib/tusk/commands/consolidate.js
View
@@ -2,10 +2,10 @@
// -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License
var tusk = require("../../tusk");
-var util = require("util");
-var args = require("args");
+var util = require("narwhal/util");
+var args = require("narwhal/args");
var fs = require("file");
-var packages = require("packages");
+var packages = require("narwhal/packages");
var parser = exports.parser = new args.Parser();
6 packages/tusk/lib/tusk/commands/engine.js
View
@@ -4,9 +4,9 @@
var system = require('system');
var os = require('os');
var fs = require('file');
-var util = require('util');
+var util = require("narwhal/util");
var tusk = require('../../tusk');
-var args = require('args');
+var args = require("narwhal/args");
var parser = exports.parser = new args.Parser();
@@ -15,7 +15,7 @@ parser.help('selects a engine for the current "sea"');
parser.arg('engine').optional();
parser.action(function (options) {
- var packages = require("packages");
+ var packages = require("narwhal/packages");
var self = this;
var directory = tusk.getDirectory();
4 packages/tusk/lib/tusk/commands/init.js
View
@@ -4,8 +4,8 @@
var system = require("system");
var fs = require("file");
var json = require("json");
-var util = require("util");
-var args = require("args");
+var util = require("narwhal/util");
+var args = require("narwhal/args");
var parser = exports.parser = new args.Parser();
parser.help('initializes a Narwhal package/project directory');
6 packages/tusk/lib/tusk/commands/install.js
View
@@ -4,13 +4,13 @@
// -- veged Sergey Berezhnoy TODO
var tusk = require("../../tusk");
-var util = require("util");
-var args = require("args");
+var util = require("narwhal/util");
+var args = require("narwhal/args");
var fs = require("file");
var json = require("json");
var http = require("http-client");
var zip = require("zip");
-var packages = require("packages");
+var packages = require("narwhal/packages");
var URI = require("uri");
var UUID = require("uuid");
6 packages/tusk/lib/tusk/commands/list.js
View
@@ -2,9 +2,9 @@
// -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License
var tusk = require("../../tusk");
-var util = require("util");
-var args = require("args");
-var packages = require("packages");
+var util = require("narwhal/util");
+var args = require("narwhal/args");
+var packages = require("narwhal/packages");
var parser = exports.parser = new args.Parser();
6 packages/tusk/lib/tusk/commands/reheat.js
View
@@ -3,9 +3,9 @@
var tusk = require("../../tusk");
var install = require('./install');
-var util = require("util");
-var args = require("args");
-var packages = require('packages');
+var util = require("narwhal/util");
+var args = require("narwhal/args");
+var packages = require("narwhal/packages");
var parser = exports.parser = new args.Parser();
parser.help('reconsistutes the exact versions of all dependencies from a frozen project');
4 packages/tusk/lib/tusk/commands/remove.js
View
@@ -2,8 +2,8 @@
// -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License
var tusk = require("../../tusk");
-var util = require("util");
-var args = require("args");
+var util = require("narwhal/util");
+var args = require("narwhal/args");
var parser = exports.parser = new args.Parser();
parser.help('removes the local copy of package');
6 packages/tusk/lib/tusk/commands/search.js
View
@@ -2,10 +2,10 @@
// -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License
var tusk = require("../../tusk");
-var util = require("util");
+var util = require("narwhal/util");
var http = require("http-client");
-var packages = require("packages");
-var stream = require("term").stream;
+var packages = require("narwhal/packages");
+var stream = require("narwhal/term").stream;
var Parser = exports.Parser = function () {
};
2  packages/tusk/lib/tusk/commands/update.js
View
@@ -2,7 +2,7 @@
// -- kriskowal Kris Kowal Copyright (C) 2009-2010 MIT License
var UPDATE = require("../update");
-var ARGS = require("args");
+var ARGS = require("narwhal/args");
var FS = require("file");
var parser = exports.parser = new ARGS.Parser();
6 packages/tusk/lib/tusk/update.js
View
@@ -3,12 +3,12 @@
var FS = require("file");
var TUSK = require("../tusk");
-var UTIL = require("util");
+var UTIL = require("narwhal/util");
var URI = require("uri");
var JSON = require("json");
var ASSERT = require("assert");
-var PACKAGES = require("packages");
-var stream = require("term").stream;
+var PACKAGES = require("narwhal/packages");
+var stream = require("narwhal/term").stream;
exports.defaultSources = {"includes": [
"http://github.com/280north/narwhal/raw/master/catalog-2.json"
2  packages/zip/tests/zip-tests.js
View
@@ -1,6 +1,6 @@
var FILE = require("file");
var ASSERT = require("test/assert");
-var UTIL = require("util");
+var UTIL = require("narwhal/util");
var UNZIP = require("unzip");
var INFLATE = require("inflate");
4 tests/args/domain.js
View
@@ -1,6 +1,6 @@
-var util = require('util');
-var args = require('args');
+var util = require("narwhal/util");
+var args = require("narwhal/args");
var assert = require('test/assert');
var test = require('../args');
2  tests/args/options.js
View
@@ -1,4 +1,4 @@
-var args = require('args');
+var args = require("narwhal/args");
var assert = require("test/assert");
var test = require("../args");
2  tests/args/shifting.js
View
@@ -1,5 +1,5 @@
-var args = require('args');
+var args = require("narwhal/args");
var assert = require("test/assert");
var test = require("../args");
4 tests/args/validation.js
View
@@ -1,6 +1,6 @@
-var util = require('util');
-var args = require('args');
+var util = require("narwhal/util");
+var args = require("narwhal/args");
var assert = require('test/assert');
var test = require('../args');
2  tests/commonjs/file/dirname.js
View
@@ -1,5 +1,5 @@
-var util = require('util');
+var util = require("narwhal/util");
var assert = require('test/assert');
var fs = require('file');
2  tests/commonjs/file/extension.js
View
@@ -1,5 +1,5 @@
-var util = require('util');
+var util = require("narwhal/util");
var assert = require('test/assert');
var fs = require('file');
2  tests/commonjs/file/normal.js
View
@@ -1,5 +1,5 @@
-var util = require('util');
+var util = require("narwhal/util");
var assert = require('test/assert');
var fs = require('file');
2  tests/commonjs/file/path.js
View
@@ -1,7 +1,7 @@
var assert = require("test/assert");
var file = require("file");
-var util = require("util");
+var util = require("narwhal/util");
util.forEachApply([
["/", "a", "/a"],
2  tests/commonjs/file/relative.js
View
@@ -1,6 +1,6 @@
var system = require('system');
-var util = require('util');
+var util = require("narwhal/util");
var assert = require('test/assert');
var fs = require('file');
2  tests/commonjs/file/resolve.js
View
@@ -1,6 +1,6 @@
var system = require('system');
-var util = require('util');
+var util = require("narwhal/util");
var assert = require('test/assert');
var fs = require('file');
2  tests/commonjs/modules/all-tests.js
View
@@ -1,7 +1,7 @@
#!/usr/bin/env narwhal
var assert = require('test/assert');
-var sandbox = require('sandbox').sandbox;
+var sandbox = require("narwhal/sandbox").sandbox;
var fs = require('file');
[
2  tests/events.js
View
@@ -1,6 +1,6 @@
var assert = require("assert");
-var UTIL = require("util");
+var UTIL = require("narwhal/util");
var Q = require("events");
exports["test NodeJS API"] = function () {
2  tests/file/fnmatch.js
View
@@ -1,6 +1,6 @@
var assert = require("test/assert");
var fs = require("file");
-var util = require("util");
+var util = require("narwhal/util");
var tests = [
[true, 'cat', 'cat'],
2  tests/file/match.js
View
@@ -1,7 +1,7 @@
var assert = require("test/assert");
var file = require("file");
-var util = require("util");
+var util = require("narwhal/util");
util.forEachApply([
["", "", true],
2  tests/global/date-parse.js
View
@@ -1,5 +1,5 @@
-var UTIL = require("util");
+var UTIL = require("narwhal/util");
var ASSERT = require("assert");
[
2  tests/os/parse-fuzzer.js
View
@@ -1,7 +1,7 @@
var OS = require("os");
var ASSERT = require("assert");
var UTIL = require("UTIL");
-var stream = require("term").stream;
+var stream = require("narwhal/term").stream;
// config
var random = false;
2  tests/package/_files/test-sea/lib/main.js
View
@@ -1,5 +1,5 @@
-var UTIL = require("util");
+var UTIL = require("narwhal/util");
var FILE = require("file");
var ASSERT = require("assert");
6 tests/package/using.js
View
@@ -1,8 +1,8 @@
var ASSERT = require("assert");
var FILE = require("file");
-var UTIL = require("util");
-var SANDBOX = require("sandbox").Sandbox;
+var UTIL = require("narwhal/util");
+var SANDBOX = require("narwhal/sandbox").Sandbox;
exports.testAll = function() {
@@ -21,7 +21,7 @@ exports.testAll = function() {
}
require("global");
- var packages = require("packages");
+ var packages = require("narwhal/packages");
packages.load([
FILE.Path(module.path).dirname().join("_files", "test-sea").valueOf(),
system.prefix
4 tests/printf.js
View
@@ -1,8 +1,8 @@
var assert = require("test/assert");
-var util = require('util');
+var util = require("narwhal/util");
var format = require("printf");
-var sandboxing = require("sandbox");
+var sandboxing = require("narwhal/sandbox");
util.forEachApply([
4 tests/promise.js
View
@@ -1,8 +1,8 @@
var assert = require("assert");
-var UTIL = require("util");
+var UTIL = require("narwhal/util");
var queue = require("event-queue");
-var promiseModule = require("promise");
+var promiseModule = require("narwhal/promise");
exports["test NodeJS API"] = function () {
var deferred = new promiseModule.Promise();
8 tests/sandbox/reload.js
View
@@ -1,9 +1,9 @@
-var util = require("util");
+var util = require("narwhal/util");
var assert = require("test/assert");
-var args = require("args");
-var sandboxing = require("sandbox");
-var loader = require("loader");
+var args = require("narwhal/args");
+var sandboxing = require("narwhal/sandbox");
+var loader = require("narwhal/loader");
var os = require("os");
exports.test = function () {
2  tests/uri.js
View
@@ -1,5 +1,5 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
var uri = require("uri");
var URI = uri.URI;
2  tests/util/all-tests.js
View
@@ -1,6 +1,6 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
exports.testOperator = require("./operator");
exports.testObject = require("./object");
2  tests/util/array.js
View
@@ -1,6 +1,6 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
exports.testArray = function () {
assert.eq([1,2,3], util.array([1,2,3]));
2  tests/util/array/is-arguments.js
View
@@ -1,6 +1,6 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
exports.testArray = function () {
assert.isFalse(util.isArguments([]));
2  tests/util/array/is-array-like.js
View
@@ -1,6 +1,6 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
exports.testArray = function () {
assert.isTrue(util.isArrayLike([]));
2  tests/util/case.js
View
@@ -1,6 +1,6 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
/* upper, lower, camel, title, splitName, joinName */
2  tests/util/collection.js
View
@@ -1,6 +1,6 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
/*
exports.testKeys = function () {
2  tests/util/complete.js
View
@@ -1,5 +1,5 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
exports["test completes key"] = function() {
assert.eq("world", util.complete({}, { hello: "world" }).hello);
2  tests/util/eq.js
View
@@ -1,6 +1,6 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
exports.testUndefined = function () {
assert.isTrue(util.eq(undefined, undefined));
2  tests/util/expand.js
View
@@ -1,6 +1,6 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
var expandOracle = function (line, tabLength, initial) {
if (!tabLength) tabLength = 4;
2  tests/util/object.js
View
@@ -1,6 +1,6 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
exports.testObject = function () {
assert.eq({"a": 10}, util.object({"a": 10}));
2  tests/util/operator.js
View
@@ -1,6 +1,6 @@
var assert = require('test/assert');
-var util = require("util");
+var util = require("narwhal/util");
exports.testNegative = function () {
var foo = {"repr": 10};
2  tests/util/range.js
View
@@ -1,6 +1,6 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
exports.testRange1 = function () {
assert.eq([0, 1, 2], util.range(3));
2  tests/util/repr.js
View
@@ -1,6 +1,6 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
exports.testObject = function () {
assert.eq('{"a": 10}', util.repr({"a": 10}));
2  tests/util/string.js
View
@@ -1,6 +1,6 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
/*
exports.testEscape = function () {
2  tests/util/unique.js
View
@@ -1,6 +1,6 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
exports.test = function () {
assert.eq([3, 2, 1], util.unique([3, 2, 3, 1, 2, 3]));
2  tests/util/update.js
View
@@ -1,5 +1,5 @@
var assert = require("test/assert");
-var util = require("util");
+var util = require("narwhal/util");
exports["test returns updated object"] = function() {
var obj = {};
Please sign in to comment.
Something went wrong with that request. Please try again.