This commit is contained in:
MishaBagger
2023-10-25 09:15:21 +03:00
commit b6c10cc93f
9828 changed files with 1446743 additions and 0 deletions

20
6/node_modules/jasmine-growl-reporter/LICENSE.txt generated vendored Normal file
View File

@@ -0,0 +1,20 @@
Copyright (c) 2013-2014 Simon Oulevay (Alpha Hydrae)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

37
6/node_modules/jasmine-growl-reporter/README.md generated vendored Normal file
View File

@@ -0,0 +1,37 @@
# Jasmine Growl Reporter
[![NPM version](https://badge.fury.io/js/jasmine-growl-reporter.svg)](http://badge.fury.io/js/jasmine-growl-reporter)
[![Dependency Status](https://gemnasium.com/AlphaHydrae/jasmine-growl-reporter.svg)](https://gemnasium.com/AlphaHydrae/jasmine-growl-reporter)
[![Build Status](https://travis-ci.org/AlphaHydrae/jasmine-growl-reporter.svg?branch=master)](https://travis-ci.org/AlphaHydrae/jasmine-growl-reporter)
Growl notifications when running your Jasmine specs.
![jasmine-growl-reporter passed tests](https://raw.github.com/AlphaHydrae/jasmine-growl-reporter/master/res/screenshot-passed.png)
![jasmine-growl-reporter failed tests](https://raw.github.com/AlphaHydrae/jasmine-growl-reporter/master/res/screenshot-failed.png)
This reporter is included with [jasmine-node](https://github.com/mhevery/jasmine-node) and [grunt-jasmine-node](https://github.com/jasmine-contrib/grunt-jasmine-node).
See [node-growl](https://github.com/visionmedia/node-growl) for platform-specific installation instructions.
## Compatibility
* `v2.*` drops support for Node.js 0.12 and older
* `v0.2.*` and higher are compatible with Jasmine 2.0 reporters
* `v0.0.*` are compatible with Jasmine 1.3 reporters
## OS X Notification Center
Due to how the OS X Notification Center and [terminal-notifier](https://github.com/alloy/terminal-notifier) work,
passed and failed icons cannot currently be shown when forwarding Growl notifications to the notification center:
![jasmine-growl-reporter notification center](https://raw.github.com/AlphaHydrae/jasmine-growl-reporter/master/res/screenshot-notification-center.png)
## Meta
* **Author:** [Simon Oulevay (Alpha Hydrae)](https://github.com/AlphaHydrae)
* **License:** MIT (see [LICENSE.txt](https://raw.github.com/AlphaHydrae/jasmine-growl-reporter/master/LICENSE.txt))
* **Icons:** [Free Must Have Icons from VisualPharm](http://www.visualpharm.com/must_have_icon_set/)
### Contributors
* [Michael Kebe](https://github.com/michaelkebe) (show passed and failed icons)

1
6/node_modules/jasmine-growl-reporter/index.js generated vendored Normal file
View File

@@ -0,0 +1 @@
module.exports = require('./lib/reporter').inject();

82
6/node_modules/jasmine-growl-reporter/lib/reporter.js generated vendored Normal file
View File

@@ -0,0 +1,82 @@
exports.inject = function(deps) {
deps = deps || {};
var growl = deps.growl || require('growl'),
path = require('path');
function GrowlReporter() {
}
GrowlReporter.prototype.jasmineStarted = function() {
this.startedAt = new Date();
this.counts = {
failed: 0,
pending: 0,
total: 0
};
};
GrowlReporter.prototype.specStarted = function() {
this.counts.total++;
};
GrowlReporter.prototype.specDone = function(spec) {
switch (spec.status) {
case 'pending':
this.counts.pending++;
break;
case 'failed':
this.counts.failed++;
break;
}
};
GrowlReporter.prototype.jasmineDone = function() {
growl(growlMessage(this.counts), {
name: growlName,
title: growlTitle(this.counts, this.startedAt),
image: growlImage(this.counts)
});
};
var growlName = 'Jasmine',
resDir = path.resolve(__dirname, '../res');
var growlTitle = function(counts, startedAt) {
var title = passed(counts) ? 'PASSED' : 'FAILED';
title += ' in ' + ((new Date().getTime() - startedAt.getTime()) / 1000) + 's';
return title;
};
var growlMessage = function(counts) {
var description = counts.total + ' tests';
if (counts.total) {
description += ', ' + counts.failed + ' failed';
}
if (counts.pending) {
description += ', ' + counts.pending + ' pending';
}
return description;
};
var growlImage = function(counts) {
if (passed(counts)) {
return path.join(resDir, 'passed.png');
} else {
return path.join(resDir, 'failed.png');
}
};
var passed = function(counts) {
return !counts.failed;
};
return GrowlReporter;
};

33
6/node_modules/jasmine-growl-reporter/package.json generated vendored Normal file
View File

@@ -0,0 +1,33 @@
{
"name": "jasmine-growl-reporter",
"version": "2.0.0",
"main": "./index.js",
"scripts": {
"test": "grunt"
},
"dependencies": {
"growl": "^1.10.5"
},
"devDependencies": {
"grunt": "^1.0.1",
"grunt-contrib-jshint": "^1.1.0",
"grunt-contrib-watch": "^1.0.0",
"grunt-jasmine-node": "~0.3.1",
"lodash": "^4.17.4"
},
"files": [
"index.js",
"lib",
"LICENSE.txt",
"README.md",
"res"
],
"homepage": "https://github.com/AlphaHydrae/jasmine-growl-reporter",
"bugs": "https://github.com/AlphaHydrae/jasmine-growl-reporter/issues",
"author": "Alpha Hydrae (https://github.com/AlphaHydrae)",
"repository": {
"type": "git",
"url": "https://github.com/AlphaHydrae/jasmine-growl-reporter"
},
"license": "MIT"
}

BIN
6/node_modules/jasmine-growl-reporter/res/failed.png generated vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
6/node_modules/jasmine-growl-reporter/res/passed.png generated vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB