Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests #779

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions test/cli/usage_spec.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
var usage = require('../../cli/usage');
var assert = require('assert');

var expectedUsage = "Welcome to BackstopJS 2.1.4 CLI\n\
\n\
Commands:\n\
reference Create reference screenshots of your web content at multiple screen sizes.\n\
test Create test screenshots of your web content and compare against the set you created using `backstop reference`.\n\
genConfig Generate a configuration file boilerplate in your current directory. PLEASE NOTE: this will force overwrite any existing config.\n\
openReport View your last test screenshots in your browser.\n\
\n\
Options:\n\
-h, --help Display usage\n\
-v, --version Display version\n\
-i Incremental reference generation\n\
\n\
";
var expectedUsage = `Welcome to BackstopJS 3.2.16 CLI

Commands:
test Create test screenshots and compare against the set you previously approved/referenced.
approve Promotes all test bitmaps from last test run to reference bitmaps.
reference Creates new reference screenshots. Deletes all existing reference files.
init Generate BackstopJS boilerplate files in your CWD. NOTE: Overwrites existing config files!
openReport View the last test report in your browser.

Options:
-h, --help Display usage
-v, --version Display version
-i incremental reference generation

`;

describe('the cli usage', function () {
it('should print usage hints correctly', function () {
assert.equal(usage, expectedUsage);
});
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions test/configs/backstop_features.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ module.exports = {
{
label: 'noDelay',
url: '../../index.html?delay',
delay: 1000,
selectors: ['.moneyshot']
},
{
Expand Down