test-agent
Advanced tools
Comparing version 0.15.0 to 0.16.0
@@ -52,2 +52,7 @@ (function(window) { | ||
tasks: { | ||
test: 'run tests', | ||
coverage: 'run tests with coverage', | ||
}, | ||
templates: { | ||
@@ -68,3 +73,3 @@ testList: '<ul class="test-list"></ul>', | ||
get execButton() { | ||
if(!this._execButton){ | ||
if (!this._execButton) { | ||
this._execButton = this.element.querySelector('button'); | ||
@@ -75,2 +80,13 @@ } | ||
get command() { | ||
var covCheckbox = document.querySelector('#test-agent-coverage-checkbox'), | ||
covFlag = covCheckbox ? covCheckbox.checked : false; | ||
if (covFlag) { | ||
return this.tasks.coverage; | ||
} else { | ||
return this.tasks.test; | ||
} | ||
}, | ||
enhance: function enhance(worker) { | ||
@@ -155,2 +171,3 @@ this.worker = worker; | ||
this.initDomEvents(); | ||
window.dispatchEvent(new CustomEvent('test-agent-list-done')); | ||
}, | ||
@@ -193,3 +210,3 @@ | ||
self.worker.emit('run tests', {tests: tests}); | ||
self.worker.emit(self.command, {tests: tests}); | ||
}); | ||
@@ -196,0 +213,0 @@ } |
{ | ||
"name": "test-agent", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"author": "James Lal", | ||
@@ -5,0 +5,0 @@ "description": "execute client side tests from browser report back to cli", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
235520
72
7319
1