Skip to content

Commit

Permalink
Merge 9a69ff1 into 663da1f
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Jan 3, 2019
2 parents 663da1f + 9a69ff1 commit cf414ed
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .npmrc
@@ -0,0 +1,2 @@
package-lock = false
save-exact = false
8 changes: 6 additions & 2 deletions bootstrap-unexpected-markdown.js
@@ -1,4 +1,8 @@
/*global unexpected:true*/
unexpected = require('unexpected');
unexpected = require('unexpected')
.clone()
.use(require('./lib/unexpected-date'));

// Make sure that error messages are rendered deterministically,
// regardless of the width of the terminal window:
unexpected.output.preferredWidth = 80;
unexpected.use(require('./lib/unexpected-date'));
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -52,7 +52,7 @@
"rollup-plugin-node-globals": "^1.2.1",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-uglify": "^2.0.1",
"unexpected": "^10.32.0",
"unexpected": "^11.0.0-4",
"unexpected-documentation-site-generator": "^4.0.0",
"unexpected-markdown": "^1.4.0"
}
Expand Down
4 changes: 4 additions & 0 deletions test/after.spec.js
Expand Up @@ -3,6 +3,10 @@ var unexpected = require('unexpected'),

describe('unexpected-date', function() {
var expect = unexpected.clone().use(unexpectedDate);

// Make sure that error messages are rendered deterministically,
// regardless of the width of the terminal window:
expect.output.preferredWidth = 80;
var dateA = new Date(2010, 10, 10);
var dateB = new Date(2010, 10, 11);

Expand Down
5 changes: 5 additions & 0 deletions test/before.spec.js
Expand Up @@ -3,6 +3,11 @@ var unexpected = require('unexpected'),

describe('unexpected-date', function() {
var expect = unexpected.clone().use(unexpectedDate);

// Make sure that error messages are rendered deterministically,
// regardless of the width of the terminal window:
expect.output.preferredWidth = 80;

var dateA = new Date(2010, 10, 10);
var dateB = new Date(2010, 10, 11);

Expand Down
6 changes: 6 additions & 0 deletions test/between.spec.js
Expand Up @@ -3,6 +3,12 @@ var unexpected = require('unexpected'),

describe('unexpected-date', function() {
var expect = unexpected.clone().use(unexpectedDate);

// Make sure that error messages are rendered deterministically,
// regardless of the width of the terminal window:
expect.output.preferredWidth = 80;


var dateA = new Date(2010, 10, 10);
var dateB = new Date(2010, 10, 11);
var dateC = new Date(2010, 10, 12);
Expand Down
5 changes: 5 additions & 0 deletions test/close-to.spec.js
Expand Up @@ -3,6 +3,11 @@ var unexpected = require('unexpected'),

describe('unexpected-date', function() {
var expect = unexpected.clone().use(unexpectedDate);

// Make sure that error messages are rendered deterministically,
// regardless of the width of the terminal window:
expect.output.preferredWidth = 80;

var dateA = new Date(2010, 10, 10);
var dateB = new Date(2010, 10, 11);

Expand Down
5 changes: 5 additions & 0 deletions test/equal.spec.js
Expand Up @@ -3,6 +3,11 @@ var unexpected = require('unexpected'),

describe('unexpected-date', function() {
var expect = unexpected.clone().use(unexpectedDate);

// Make sure that error messages are rendered deterministically,
// regardless of the width of the terminal window:
expect.output.preferredWidth = 80;

var dateA = new Date(2010, 10, 10);
var dateB = new Date(2010, 10, 11);

Expand Down
2 changes: 1 addition & 1 deletion test/mocha.opts
Expand Up @@ -2,4 +2,4 @@
--recursive
--check-leaks
--require ./bootstrap-unexpected-markdown.js
--compilers md:unexpected-markdown
--require unexpected-markdown

0 comments on commit cf414ed

Please sign in to comment.