Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a straight TS conversion, without significant changes to the API. The work was started by @jason0x43 and completed by @nicknisi. In addition to the basic conversion, several other project-level changes were made: - Move from custom dojo2 to dojo-core, etc. - Use pre-release TS version of Dig Dug - Use `files` in package.json instead of .npmignore for package building - A new intern-dev package is used for all the build lifecycle functions (build, clean, lint, etc.) [ci skip]
- Loading branch information
Showing
95 changed files
with
12,398 additions
and
11,632 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ saucelabs | |
testingbot | ||
browserstack | ||
coverage-final.json | ||
_build/ | ||
src/**/*.js | ||
benchmark.json | ||
baselines.json | ||
*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
define([ 'chai' ], function (chai) { | ||
// ensure that chai-generated errors always include a stack | ||
chai.config.includeStack = true; | ||
|
||
return { | ||
/** | ||
* AMD plugin API interface for easy loading of chai assertion interfaces. | ||
*/ | ||
load: function (id, parentRequire, callback) { | ||
if (!id) { | ||
callback(chai); | ||
return; | ||
} | ||
|
||
if (!chai[id]) { | ||
throw new Error('Invalid chai interface "' + id + '"'); | ||
} | ||
|
||
if (!chai[id].AssertionError) { | ||
chai[id].AssertionError = chai.AssertionError; | ||
} | ||
|
||
callback(chai[id]); | ||
}, | ||
|
||
normalize: function (id) { | ||
return id; | ||
} | ||
}; | ||
}); | ||
/** | ||
* AMD plugin API interface for easy loading of chai assertion interfaces. | ||
*/ | ||
|
||
import * as chai from 'chai'; | ||
import { IRequire } from 'dojo/loader'; | ||
|
||
// Ensure that chai-generated errors always include a stack | ||
chai.config.includeStack = true; | ||
|
||
export function load(id: string, _pluginRequire: IRequire, callback: Function) { | ||
if (!id) { | ||
callback(chai); | ||
return; | ||
} | ||
|
||
const iface: any = (<any> chai)[id]; | ||
|
||
if (!iface) { | ||
throw new Error('Invalid chai interface "' + id + '"'); | ||
} | ||
|
||
if (!iface.AssertionError) { | ||
iface.AssertionError = chai.AssertionError; | ||
} | ||
|
||
callback(iface); | ||
} | ||
|
||
export function normalize(id: string) { | ||
return id; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.