diff --git a/assert/assert-tests.ts b/assert/assert-tests.ts deleted file mode 100644 index 4b194e8700..0000000000 --- a/assert/assert-tests.ts +++ /dev/null @@ -1,19 +0,0 @@ - - -assert(1 + 1 - 2 === 0, "The universe isn't how it should."); - -assert.deepEqual({ x: { y: 3 } }, { x: { y: 3 } }, "DEEP WENT DERP"); - -assert.equal(3, "3", "uses == comparator"); - -assert.notStrictEqual(2, "2", "uses === comparator"); - -assert.throws(() => { - throw "a hammer at your face"; -}, undefined, "DODGED IT"); - -assert.doesNotThrow(() => { - if (!!false) { - throw "a hammer at your face"; - } -}, undefined, "What the...*crunch*"); diff --git a/assert/index.d.ts b/assert/index.d.ts deleted file mode 100644 index 23536f9597..0000000000 --- a/assert/index.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -// Type definitions for assert and power-assert -// Project: https://github.com/Jxck/assert, https://github.com/twada/power-assert -// Definitions by: vvakame -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -// Definitions for commonjs-assert match that of node.js' assert module, -// but commonjs-assert is intended to be used as an independent module, -// for instance when making a stand-alone site or app that doesn't have -// access to node modules. For that reason, these definitions define a -// "assert" module. This will conflict with node.d.ts and other assert -// modules such as "power-assert", but a project should realistically -// only be using one of these at a time. - -declare function assert(value:any, message?:string):void; -declare namespace assert { - export class AssertionError implements Error { - name:string; - message:string; - actual:any; - expected:any; - operator:string; - generatedMessage:boolean; - - constructor(options?:{message?: string; actual?: any; expected?: any; operator?: string; stackStartFunction?: Function}); - } - - export function fail(actual?:any, expected?:any, message?:string, operator?:string):void; - - export function ok(value:any, message?:string):void; - - export function equal(actual:any, expected:any, message?:string):void; - - export function notEqual(actual:any, expected:any, message?:string):void; - - export function deepEqual(actual:any, expected:any, message?:string):void; - - export function notDeepEqual(acutal:any, expected:any, message?:string):void; - - export function strictEqual(actual:any, expected:any, message?:string):void; - - export function notStrictEqual(actual:any, expected:any, message?:string):void; - - export var throws:{ - (block:Function, message?:string): void; - (block:Function, error:Function, message?:string): void; - (block:Function, error:RegExp, message?:string): void; - (block:Function, error:(err:any) => boolean, message?:string): void; - }; - - export var doesNotThrow:{ - (block:Function, message?:string): void; - (block:Function, error:Function, message?:string): void; - (block:Function, error:RegExp, message?:string): void; - (block:Function, error:(err:any) => boolean, message?:string): void; - }; - - export function ifError(value:any):void; -} - diff --git a/assert/tsconfig.json b/assert/tsconfig.json deleted file mode 100644 index b25f0dbcf3..0000000000 --- a/assert/tsconfig.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "target": "es6", - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "assert-tests.ts" - ] -} \ No newline at end of file