Add versioning to jasmine
This commit is contained in:
11
src/Env.js
11
src/Env.js
@@ -28,6 +28,17 @@ jasmine.Env.prototype.clearTimeout = jasmine.clearTimeout;
|
||||
jasmine.Env.prototype.setInterval = jasmine.setInterval;
|
||||
jasmine.Env.prototype.clearInterval = jasmine.clearInterval;
|
||||
|
||||
jasmine.Env.prototype.version = function () {
|
||||
if (jasmine.version_) {
|
||||
return parseInt(jasmine.version_.major + "" +
|
||||
jasmine.version_.minor + "" +
|
||||
jasmine.version_.build + "" +
|
||||
jasmine.version_.revision + "");
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Register a reporter to receive status updates from Jasmine.
|
||||
* @param {jasmine.Reporter} reporter An object which will receive status updates.
|
||||
|
||||
6
src/version.json
Normal file
6
src/version.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"major": 0,
|
||||
"minor": 9,
|
||||
"build": 0,
|
||||
"revision": 0
|
||||
}
|
||||
Reference in New Issue
Block a user