🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

burnside

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

burnside - npm Package Compare versions

Comparing version
0.3.1
to
0.3.2
+4
-0
changelog.md

@@ -6,2 +6,6 @@ # Change Log

## [0.3.2]
### Changed
- Replaces Unix `rm -rf` with the rmraf module for Windows development
## [0.3.1]

@@ -8,0 +12,0 @@ ### Changed

+3
-2
{
"name": "burnside",
"version": "0.3.1",
"version": "0.3.2",
"description": "Fast and Reliable E2E Web Testing. Core Clientside Library.",

@@ -17,3 +17,3 @@ "repository": {

"scripts": {
"clean": "rm -rf lib",
"clean": "rimraf lib",
"babel": "babel src --out-dir lib --source-maps inline",

@@ -69,2 +69,3 @@ "prepublish": "npm run clean && npm run babel",

"proxyquire": "^1.7.10",
"rimraf": "^2.6.2",
"sinon": "^1.17.4",

@@ -71,0 +72,0 @@ "sinon-chai": "^2.8.0",

@@ -32,8 +32,8 @@ ## Burnside

| ------ | ------- | ------- |
| `<default>` | `./path/to/tests.js` | Your Test File |
| `startup` | `--startup='./exampleServer.sh'` | A BASH Command representing your application's startup command |
| `<default>` | `./path/to/tests.js` | Your Test File. Webpack is built in so use `require` for more files. |
| `startup` | `--startup='./exampleServer.sh'` | An _optional_ startup command for your application. |
| `condition` | `--condition='startup'` | An _optional_ startup message for Burnside to wait on |
| `wait` | `--wait=500` | The amount of time Burnside will wait for the `startup` `condition` to be reached, if specified. Defaults to 5000 |
| `browsers` | `--browsers=chrome,firefox` | The browsers Burnside should attempt to use when testing. You're responsible for making sure they are installed and configured. Available: `chrome` and `firefox` |
| `karmaConfig` | `--karmaConfig=./burnside.karma.conf.js` | A relative path to an optional Karma configuration. You can use this to override settings, inject karma plugins, and configure them while also allowing Burnside to add in its [required Karma configuration](https://bitbucket.nike.com/projects/WEBCD/repos/burnside/browse/packages/burnside-cli/karma.conf.js) to be layered on afterward. For more information visit [Karm's Documentation](https://karma-runner.github.io/1.0/config/configuration-file.html) |
| `karmaConfig` | `--karmaConfig=./burnside.karma.conf.js` | A relative path to an optional Karma configuration. You can use this to override settings, inject Karma plugins, and configure them while also allowing Burnside to add in its own [required Karma configuration](https://github.com/Nike-Inc/burnside/tree/master/packages/burnside-cli/karma.conf.js) to be layered on afterward. For more information visit on how to work with Karma, visit its [Documentation](https://karma-runner.github.io/1.0/config/configuration-file.html) |

@@ -121,3 +121,3 @@ Burnside is a modular ecosystem based on a core that runs inside of a Browser. The CLI bundles Karma and Webpack to load your tests within Chrome, but you can use Burnside's core with any Test Runner you'd like to set up.

```
Now you're all configured! If you'd like to contribute to the Tutorial, please read our [Tutorial Developers Guide](https://bitbucket.nike.com/projects/WEBCD/repos/burnside/browse/docs/tutorial.md)
Now you're all configured! If you'd like to contribute to the Tutorial, please read our [Tutorial Developers Guide](https://github.com/Nike-Inc/burnside/blob/master/docs/tutorial.md)

@@ -124,0 +124,0 @@ ## License

Sorry, the diff of this file is not supported yet

<!DOCTYPE html>
<head>
<title>ESLint Report</title>
<style>
body {
font-family:Arial, "Helvetica Neue", Helvetica, sans-serif;
font-size:16px;
font-weight:normal;
margin:0;
padding:0;
color:#333
}
#overview {
padding:20px 30px
}
td, th {
padding:5px 10px
}
h1 {
margin:0
}
table {
margin:30px;
width:calc(100% - 60px);
max-width:1000px;
border-radius:5px;
border:1px solid #ddd;
border-spacing:0px;
}
th {
font-weight:400;
font-size:normal;
text-align:left;
cursor:pointer
}
td.clr-1, td.clr-2, th span {
font-weight:700
}
th span {
float:right;
margin-left:20px
}
th span:after {
content:"";
clear:both;
display:block
}
tr:last-child td {
border-bottom:none
}
tr td:first-child, tr td:last-child {
color:#9da0a4
}
#overview.bg-0, tr.bg-0 th {
color:#468847;
background:#dff0d8;
border-bottom:1px solid #d6e9c6
}
#overview.bg-1, tr.bg-1 th {
color:#f0ad4e;
background:#fcf8e3;
border-bottom:1px solid #fbeed5
}
#overview.bg-2, tr.bg-2 th {
color:#b94a48;
background:#f2dede;
border-bottom:1px solid #eed3d7
}
td {
border-bottom:1px solid #ddd
}
td.clr-1 {
color:#f0ad4e
}
td.clr-2 {
color:#b94a48
}
td a {
color:#3a33d1;
text-decoration:none
}
td a:hover {
color:#272296;
text-decoration:underline
}
</style>
</head>
<body>
<div id="overview" class="bg-0">
<h1>ESLint Report</h1>
<div>
<span>0 problems</span> - Generated on Mon Oct 09 2017 17:19:12 GMT-0700 (PDT)
</div>
</div>
<table>
<tbody>
<tr class="bg-0" data-group="f-0">
<th colspan="4">
[+] /Users/bhammo/Documents/playroom/cd_code/burnside/packages/burnside/src/Burnside/burnside.js
<span>0 problems</span>
</th>
</tr>
<tr class="bg-0" data-group="f-1">
<th colspan="4">
[+] /Users/bhammo/Documents/playroom/cd_code/burnside/packages/burnside/src/Burnside/index.js
<span>0 problems</span>
</th>
</tr>
<tr class="bg-0" data-group="f-2">
<th colspan="4">
[+] /Users/bhammo/Documents/playroom/cd_code/burnside/packages/burnside/src/Client/client.js
<span>0 problems</span>
</th>
</tr>
<tr class="bg-0" data-group="f-3">
<th colspan="4">
[+] /Users/bhammo/Documents/playroom/cd_code/burnside/packages/burnside/src/Client/index.js
<span>0 problems</span>
</th>
</tr>
<tr class="bg-0" data-group="f-4">
<th colspan="4">
[+] /Users/bhammo/Documents/playroom/cd_code/burnside/packages/burnside/src/index.js
<span>0 problems</span>
</th>
</tr>
<tr class="bg-0" data-group="f-5">
<th colspan="4">
[+] /Users/bhammo/Documents/playroom/cd_code/burnside/packages/burnside/src/index.test.js
<span>0 problems</span>
</th>
</tr>
<tr class="bg-0" data-group="f-6">
<th colspan="4">
[+] /Users/bhammo/Documents/playroom/cd_code/burnside/packages/burnside/src/Navigator/api.js
<span>0 problems</span>
</th>
</tr>
<tr class="bg-0" data-group="f-7">
<th colspan="4">
[+] /Users/bhammo/Documents/playroom/cd_code/burnside/packages/burnside/src/Navigator/constants.js
<span>0 problems</span>
</th>
</tr>
<tr class="bg-0" data-group="f-8">
<th colspan="4">
[+] /Users/bhammo/Documents/playroom/cd_code/burnside/packages/burnside/src/Navigator/index.js
<span>0 problems</span>
</th>
</tr>
<tr class="bg-0" data-group="f-9">
<th colspan="4">
[+] /Users/bhammo/Documents/playroom/cd_code/burnside/packages/burnside/src/Navigator/reduxApp.js
<span>0 problems</span>
</th>
</tr>
</tbody>
</table>
<script type="text/javascript">
var groups = document.querySelectorAll("tr[data-group]");
for (i = 0; i < groups.length; i++) {
groups[i].addEventListener("click", function() {
var inGroup = document.getElementsByClassName(this.getAttribute("data-group"));
this.innerHTML = (this.innerHTML.indexOf("+") > -1) ? this.innerHTML.replace("+", "-") : this.innerHTML.replace("-", "+");
for (var j = 0; j < inGroup.length; j++) {
inGroup[j].style.display = (inGroup[j].style.display !== "none") ? "none" : "table-row";
}
});
}
</script>
</body>
</html>
<?xml version="1.0"?>
<testsuite name="Chrome 61.0.3163 (Mac OS X 10.11.6)" package="" timestamp="2017-11-07T00:04:57" id="0" hostname="AP7JG8WMA35943" tests="33" errors="0" failures="0" time="2.567">
<properties>
<property name="browser.fullName" value="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"/>
</properties>
<testcase name="The Burnside Library should export Burnside, the Client, and the list of Actions" time="0.001" classname="The Burnside Library"/>
<testcase name="Burnside load should return a Promise that resolves to a Burnside object" time="0.041" classname="Burnside"/>
<testcase name="Burnside should run the given function with the appropriate arguments inside the test frame" time="0.024" classname="Burnside"/>
<testcase name="Burnside should wait until the function returns the expected object" time="0.12" classname="Burnside"/>
<testcase name="Burnside should timeout waiting for something that never returns" time="0.066" classname="Burnside"/>
<testcase name="Burnside should pause when debugging is needed" time="0.004" classname="Burnside"/>
<testcase name="Burnside should output a specific warning when multiple park functions are invoked across all tests" time="0.773" classname="Burnside"/>
<testcase name="Burnside should return a primitive as a primitive (not a string)" time="0.013" classname="Burnside"/>
<testcase name="Burnside should throw errors from the client" time="0.014" classname="Burnside"/>
<testcase name="Burnside should invoke then within the test frame with the content of the previous function" time="0.012" classname="Burnside"/>
<testcase name="Burnside should be able to use a single function" time="0.013" classname="Burnside"/>
<testcase name="Burnside should support the clientside use format" time="0.014" classname="Burnside"/>
<testcase name="Burnside should be able to use a single named function that returns an object" time="0.013" classname="Burnside"/>
<testcase name="Burnside should be able to use an anonymous function bound to the test scope with the default name 'custom'" time="0.025" classname="Burnside"/>
<testcase name="Burnside should be able to use a single extension" time="0.026" classname="Burnside"/>
<testcase name="Burnside should be able to use a custom module with internal state" time="0.015" classname="Burnside"/>
<testcase name="Burnside should be able to inject a third party library via CDN" time="0.012" classname="Burnside"/>
<testcase name="Burnside should gracefully handle empty parameters" time="0.01" classname="Burnside"/>
<testcase name="Burnside should gracefully handle empty parameters" time="0.02" classname="Burnside"/>
<testcase name="Burnside should protect reserved names from custom extensions overwriting them" time="0.018" classname="Burnside"/>
<testcase name="Burnside load should ignore errors when cleaning caused by iframes that cleaned up themselves" time="0.018" classname="Burnside"/>
<testcase name="Burnside should cause a warning when then is not called within a reasonable amount of time" time="0.504" classname="Burnside"/>
<testcase name="Burnside should load iframe with default viewPort in percent" time="0.027" classname="Burnside"/>
<testcase name="Burnside instantiation should succeed with an externally injected Client and injection turned off" time="0.014" classname="Burnside instantiation"/>
<testcase name="Burnside instantiation Burnside should generate a new iframe on each run with keepAlive mode false" time="0.048" classname="Burnside instantiation"/>
<testcase name="Burnside instantiation Burnside should reuse the same iframe with keepAlive mode equal to true" time="0.015" classname="Burnside instantiation"/>
<testcase name="Burnside instantiation load should respect a custom timeout option of 1ms" time="0.004" classname="Burnside instantiation"/>
<testcase name="Burnside instantiation load should expose a catch method to catch errors" time="0.007" classname="Burnside instantiation"/>
<testcase name="Burnside instantiation should run middlware" time="0.107" classname="Burnside instantiation"/>
<testcase name="Burnside instantiation should not modify the prototype of Burnside when use is invoked on an instance" time="0.022" classname="Burnside instantiation"/>
<testcase name="Burnside instantiation should not modify the prototype of Burnside when a customized Burnside is created" time="0.046" classname="Burnside instantiation"/>
<testcase name="Burnside instantiation should avoid a warning when disable-no-then-warning rule is set" time="0.504" classname="Burnside instantiation"/>
<testcase name="Burnside instantiation should load iframe with custom viewPort dimensions" time="0.017" classname="Burnside instantiation"/>
<system-out>
<![CDATA[Chrome 61.0.3163 (Mac OS X 10.11.6) WARN: 'No test frame functionality performed with this instance of Burnside. Please add a `.then` function block or, if using mocha, return this instance to the test runner.'
,Chrome 61.0.3163 (Mac OS X 10.11.6) WARN: 'Burnside is running in Debug mode via your use of Park. Please consider removing your use of SLEEP prior to committing your final tests, you could save 151ms'
,Chrome 61.0.3163 (Mac OS X 10.11.6) WARN: 'No test frame functionality performed with this instance of Burnside. Please add a `.then` function block or, if using mocha, return this instance to the test runner.'
,Chrome 61.0.3163 (Mac OS X 10.11.6) WARN: 'No test frame functionality performed with this instance of Burnside. Please add a `.then` function block or, if using mocha, return this instance to the test runner.'
,Chrome 61.0.3163 (Mac OS X 10.11.6) WARN: 'No test frame functionality performed with this instance of Burnside. Please add a `.then` function block or, if using mocha, return this instance to the test runner.'
]]>
</system-out>
<system-err/>
</testsuite>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>summary</title>
<style>
body { background-color: #eeeeee; padding: 0; margin: 5px; overflow-y: scroll; }
#HTMLReporter h1 { font-size: 12px; font-weight: normal; text-align: right; margin: 10px 0 10px 0 !important; }
#HTMLReporter { font-size: 11px; font-family: Monaco, "Lucida Console", monospace; line-height: 14px; color: #333333; }
#HTMLReporter a { text-decoration: none; }
#HTMLReporter a:hover { text-decoration: underline; }
#HTMLReporter p, #HTMLReporter h1, #HTMLReporter h2, #HTMLReporter h3, #HTMLReporter h4, #HTMLReporter h5, #HTMLReporter h6 { margin: 0; line-height: 14px; }
#HTMLReporter .banner, #HTMLReporter .symbolSummary, #HTMLReporter .summary, #HTMLReporter .resultMessage, #HTMLReporter .specDetail .description, #HTMLReporter .alert .bar, #HTMLReporter .stackTrace { padding-left: 9px; padding-right: 9px; }
#HTMLReporter #jasmine_content { position: fixed; right: 100%; }
#HTMLReporter .version { color: #aaaaaa; }
#HTMLReporter .banner { margin-top: 14px; }
#HTMLReporter .duration { color: #aaaaaa; float: right; }
#HTMLReporter .exceptions { color: #fff; float: right; margin-top: 5px; margin-right: 5px; }
#HTMLReporter .bar { line-height: 28px; font-size: 14px; display: block; color: #eee; }
#HTMLReporter .runningAlert { background-color: #666666; }
#HTMLReporter .skippedAlert { background-color: #aaaaaa; }
#HTMLReporter .skippedAlert:first-child { background-color: #333333; }
#HTMLReporter .skippedAlert:hover { text-decoration: none; color: white; text-decoration: underline; }
#HTMLReporter .passingAlert { background-color: #a6b779; }
#HTMLReporter .passingAlert:first-child { background-color: #5e7d00; }
#HTMLReporter .failingAlert { background-color: #cf867e; }
#HTMLReporter .failingAlert:first-child { background-color: #b03911; }
#HTMLReporter .results { margin-top: 14px; }
#HTMLReporter #details { display: none; }
#HTMLReporter .resultsMenu { color: #999; background-color: #fff; }
#HTMLReporter .summaryMenuItem { font-weight: normal; text-decoration: none; margin-right: 5px; color: #333; }
#HTMLReporter .detailsMenuItem { font-weight: normal; text-decoration: none; margin-left: 5px; color: #999; }
#HTMLReporter.showDetails .summaryMenuItem { color: #999; }
#HTMLReporter.showDetails .detailsMenuItem { color: #333; }
#HTMLReporter.showDetails .summaryMenuItem:hover { text-decoration: underline; }
#HTMLReporter .detailsMenuItem:hover { text-decoration: underline; }
#HTMLReporter.showDetails .summary { display: none; }
#HTMLReporter.showDetails #details { display: block; }
#HTMLReporter .summary { margin-top: 14px; margin-bottom: 40px; }
#HTMLReporter .summary .suite .suite, #HTMLReporter .summary .specSummary { margin-left: 14px; }
#HTMLReporter .summary .specSummary.passed { color: #5e7d00; }
#HTMLReporter .summary .specSummary.failed { color: #b03911; }
#HTMLReporter .summary .specSummary.skipped { color: #ba9d37; }
#HTMLReporter .description + .suite { margin-top: 0; }
#HTMLReporter .suite { margin-top: 14px; }
#HTMLReporter .suite a { color: #333333; }
#HTMLReporter #details .specDetail { margin-bottom: 28px; }
#HTMLReporter #details .specDetail .description { display: block; color: white; background-color: #b03911; }
#HTMLReporter .resultMessage { padding-top: 14px; color: #333333; }
#HTMLReporter .resultMessage span.result { display: block; }
#HTMLReporter .stackTrace { margin: 5px 0 0 0; max-height: 224px; overflow: auto;
line-height: 18px; color: #666666; border: 1px solid #ddd; background: white; white-space: pre; }
.fold-buttons { float: right; }
.fold-buttons a { color: #fff; font-size: 12px; }
.fold-buttons { display: none }
#HTMLReporter .br { margin-top: 8px; }
#HTMLReporter .section-starter { font-size: 14px; line-height: 18px }
#HTMLReporter .summary-section {
cursor: -webkit-zoom-out; cursor: -moz-zoom-out; cursor: zoom-out;
background: #fafafa;
padding: 10px;
border-bottom: #eaeaea 1px solid; }
#HTMLReporter .summary-section.folded {
cursor: -webkit-zoom-in; cursor: -moz-zoom-in; cursor: zoom-in;
padding-bottom: 8px;
}
#HTMLReporter .summary-section.folded div { display: none }
#HTMLReporter .summary-section.folded div.section-starter { display: block }
/*#HTMLReporter .summary-section:hover { background: #e9e9e9; }*/
#HTMLReporter .summary-section:hover { background: #f5f5f5; }
#HTMLReporter .summary-section-totals {
font-size: 11px;
display: none;
margin-left: 11px;
overflow: hidden;
position: relative;
top: -1px;
}
#HTMLReporter .summary-section.folded .summary-section-totals { display: inline; }
#HTMLReporter .summary-section-total { color: #fff; vertical-align: baseline; padding: 1px 8px; }
#HTMLReporter .summary-section-total.passed { background: #5e7d00; }
#HTMLReporter .summary-section-total.failed { background: #b03911; }
#HTMLReporter .summary-section-total.skipped { background: #ba9d37; }
#HTMLReporter { font-size: 12px; line-height: 18px; } /*larget font-size*/
</style>
</head>
<body id="HTMLReporter" class="html-reporter">
<h1>Tested in Chrome 61.0.3163 (Mac OS X 10.11.6) on Mon Nov 06 2017</h1>
<div class="alert">
<span class="passingAlert bar"><span class="fold-buttons"><a href="#" onclick="fold();">Fold</a> |
<a href="#" onclick="unfold();">Unfold</a></span>33 specs, 0 failed, 0 pending</span>
</div>
<div class="results">
<div class="summary">
<div class="suite passed">
<span class="description">The Burnside Library</span>
<div class="specSummary passed">
<span class="description">should export Burnside, the Client, and the list of Actions</span>
</div>
</div>
<div class="suite passed">
<span class="description">Burnside</span>
<div class="specSummary passed">
<span class="description">load should return a Promise that resolves to a Burnside object</span>
</div>
<div class="specSummary passed">
<span class="description">should run the given function with the appropriate arguments inside the test frame</span>
</div>
<div class="specSummary passed">
<span class="description">should wait until the function returns the expected object</span>
</div>
<div class="specSummary passed">
<span class="description">should timeout waiting for something that never returns</span>
</div>
<div class="specSummary passed">
<span class="description">should pause when debugging is needed</span>
</div>
<div class="specSummary passed">
<span class="description">should output a specific warning when multiple park functions are invoked across all tests</span>
</div>
<div class="specSummary passed">
<span class="description">should return a primitive as a primitive (not a string)</span>
</div>
<div class="specSummary passed">
<span class="description">should throw errors from the client</span>
</div>
<div class="specSummary passed">
<span class="description">should invoke then within the test frame with the content of the previous function</span>
</div>
<div class="specSummary passed">
<span class="description">should be able to use a single function</span>
</div>
<div class="specSummary passed">
<span class="description">should support the clientside use format</span>
</div>
<div class="specSummary passed">
<span class="description">should be able to use a single named function that returns an object</span>
</div>
<div class="specSummary passed">
<span class="description">should be able to use an anonymous function bound to the test scope with the default name 'custom'</span>
</div>
<div class="specSummary passed">
<span class="description">should be able to use a single extension</span>
</div>
<div class="specSummary passed">
<span class="description">should be able to use a custom module with internal state</span>
</div>
<div class="specSummary passed">
<span class="description">should be able to inject a third party library via CDN</span>
</div>
<div class="specSummary passed">
<span class="description">should gracefully handle empty parameters</span>
</div>
<div class="specSummary passed">
<span class="description">should gracefully handle empty parameters</span>
</div>
<div class="specSummary passed">
<span class="description">should protect reserved names from custom extensions overwriting them</span>
</div>
<div class="specSummary passed">
<span class="description">load should ignore errors when cleaning caused by iframes that cleaned up themselves</span>
</div>
<div class="specSummary passed">
<span class="description">should cause a warning when then is not called within a reasonable amount of time</span>
</div>
<div class="specSummary passed">
<span class="description">should load iframe with default viewPort in percent</span>
</div>
</div>
<div class="suite passed">
<span class="description">Burnside instantiation</span>
<div class="specSummary passed">
<span class="description">should succeed with an externally injected Client and injection turned off</span>
</div>
<div class="specSummary passed">
<span class="description">Burnside should generate a new iframe on each run with keepAlive mode false</span>
</div>
<div class="specSummary passed">
<span class="description">Burnside should reuse the same iframe with keepAlive mode equal to true</span>
</div>
<div class="specSummary passed">
<span class="description">load should respect a custom timeout option of 1ms</span>
</div>
<div class="specSummary passed">
<span class="description">load should expose a catch method to catch errors</span>
</div>
<div class="specSummary passed">
<span class="description">should run middlware</span>
</div>
<div class="specSummary passed">
<span class="description">should not modify the prototype of Burnside when use is invoked on an instance</span>
</div>
<div class="specSummary passed">
<span class="description">should not modify the prototype of Burnside when a customized Burnside is created</span>
</div>
<div class="specSummary passed">
<span class="description">should avoid a warning when disable-no-then-warning rule is set</span>
</div>
<div class="specSummary passed">
<span class="description">should load iframe with custom viewPort dimensions</span>
</div>
</div>
</div>
<div id="details">
</div>
<script>
var folded = false;
document.body.onkeypress = function (e) {
if (!e || !e.keyCode) return;
switch (e.keyCode) {
case 102: toggleFold(); break;
case 49: showSummary(); break;
}
};
function showSummary() { document.body.className = "html-reporter showSummary"; }
function showFailures() { document.body.className = "html-reporter showDetails"; }
function toggleSection(el) {
el.className = el.className === 'summary-section' ? 'summary-section folded' : 'summary-section';
}
function toggleFold() { (folded) ? unfold() : fold(); }
function fold() {
var els = document.querySelectorAll('.summary-section');
for (var i = 0; i < els.length; i++) {
els[i].className = 'summary-section folded';
}
folded = true;
}
function unfold() {
var els = document.querySelectorAll('.summary-section');
for (var i = 0; i < els.length; i++) {
els[i].className = 'summary-section';
}
folded = false;
}
</script>
</body>
</html>