Projects
Mega:23.09
nodeunit
_service:tar_scm:nodeunit-0.8.6-Use-system-asse...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:nodeunit-0.8.6-Use-system-assert.js.patch of Package nodeunit
From 671b19bc318293063a1a636175a3c2b102a4bade Mon Sep 17 00:00:00 2001 From: Jamie Nguyen <j@jamielinux.com> Date: Sun, 23 Feb 2014 15:45:48 +0000 Subject: [PATCH] Use system assert.js --- lib/nodeunit.js | 2 +- lib/reporters/default.js | 2 +- lib/reporters/eclipse.js | 2 +- lib/reporters/machineout.js | 2 +- lib/reporters/nested.js | 2 +- lib/reporters/verbose.js | 2 +- lib/types.js | 2 +- test/test-bettererrors.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/nodeunit.js b/lib/nodeunit.js index 7212ade..3b5c527 100644 --- a/lib/nodeunit.js +++ b/lib/nodeunit.js @@ -13,7 +13,7 @@ var async = require('async'), utils = require('./utils'), core = require('./core'), reporters = require('./reporters'), - assert = require('./assert'), + assert = require('assert'), path = require('path'), events = require('events'); diff --git a/lib/reporters/default.js b/lib/reporters/default.js index 0de3f23..3102038 100644 --- a/lib/reporters/default.js +++ b/lib/reporters/default.js @@ -13,7 +13,7 @@ var nodeunit = require('../nodeunit'), fs = require('fs'), track = require('../track'), path = require('path'), - AssertionError = require('../assert').AssertionError; + AssertionError = require('assert').AssertionError; /** * Reporter info string diff --git a/lib/reporters/eclipse.js b/lib/reporters/eclipse.js index c56a4b8..1d3a64a 100644 --- a/lib/reporters/eclipse.js +++ b/lib/reporters/eclipse.js @@ -13,7 +13,7 @@ var nodeunit = require('../nodeunit'), fs = require('fs'), track = require('../track'), path = require('path'), - AssertionError = require('../assert').AssertionError; + AssertionError = require('assert').AssertionError; /** * Reporter info string diff --git a/lib/reporters/machineout.js b/lib/reporters/machineout.js index c58ee40..c35d451 100644 --- a/lib/reporters/machineout.js +++ b/lib/reporters/machineout.js @@ -17,7 +17,7 @@ var nodeunit = require('../nodeunit'), fs = require('fs'), track = require('../track'), path = require('path'), - AssertionError = require('../assert').AssertionError; + AssertionError = require('assert').AssertionError; /** * Reporter info string diff --git a/lib/reporters/nested.js b/lib/reporters/nested.js index 62f3d79..8545614 100644 --- a/lib/reporters/nested.js +++ b/lib/reporters/nested.js @@ -13,7 +13,7 @@ var nodeunit = require('../nodeunit'), fs = require('fs'), track = require('../track'), path = require('path'), - AssertionError = require('../assert').AssertionError; + AssertionError = require('assert').AssertionError; /** * Reporter info string diff --git a/lib/reporters/verbose.js b/lib/reporters/verbose.js index 6c6083a..1d7e849 100644 --- a/lib/reporters/verbose.js +++ b/lib/reporters/verbose.js @@ -13,7 +13,7 @@ var nodeunit = require('../nodeunit'), fs = require('fs'), track = require('../track'), path = require('path'); - AssertionError = require('../assert').AssertionError; + AssertionError = require('assert').AssertionError; /** * Reporter info string diff --git a/lib/types.js b/lib/types.js index 65956f5..1b3b181 100644 --- a/lib/types.js +++ b/lib/types.js @@ -13,7 +13,7 @@ * Module dependencies */ -var assert = require('./assert'), //@REMOVE_LINE_FOR_BROWSER +var assert = require('assert'), //@REMOVE_LINE_FOR_BROWSER async = require('async'); //@REMOVE_LINE_FOR_BROWSER diff --git a/test/test-bettererrors.js b/test/test-bettererrors.js index 4cae570..e924d1a 100644 --- a/test/test-bettererrors.js +++ b/test/test-bettererrors.js @@ -2,7 +2,7 @@ * Test utils.betterErrors. utils.betterErrors should provide sensible error messages even when the error does not * contain expected, actual or operator. */ -var assert = require("../lib/assert"); +var assert = require("assert"); var should = require("should"); var types = require("../lib/types"); var util = require('util'); -- 1.8.5.3
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2