Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: unexpectedjs/unexpected-dom
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.1.0
Choose a base ref
...
head repository: unexpectedjs/unexpected-dom
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.0.0
Choose a head ref

Commits on Apr 27, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    479ab41 View commit details

Commits on Apr 28, 2022

  1. Merge pull request #406 from unexpectedjs/depfu/update/npm/unexpected…

    …-13.0.0
    
    Upgrade unexpected to version 13.0.0
    papandreou authored Apr 28, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5e8d370 View commit details

Commits on May 11, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b45817b View commit details
  2. Merge pull request #407 from unexpectedjs/depfu/update/npm/gh-pages-4…

    ….0.0
    
    Upgrade gh-pages to version 4.0.0
    papandreou authored May 11, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    89c70e0 View commit details

Commits on Jun 15, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3f76285 View commit details
  2. Merge pull request #409 from unexpectedjs/depfu/update/npm/prettier-2…

    ….7.0
    
    Upgrade prettier to version 2.7.0
    papandreou authored Jun 15, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8a55ac6 View commit details

Commits on Jul 9, 2022

  1. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    329d836 View commit details

Commits on Oct 11, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b424e9a View commit details
  2. Merge pull request #412 from unexpectedjs/depfu/update/npm/@rollup/pl…

    …ugin-multi-entry-5.0.0
    
    Upgrade @rollup/plugin-multi-entry to version 5.0.0
    papandreou authored Oct 11, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    99c7e92 View commit details

Commits on Oct 22, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8517240 View commit details
  2. Merge pull request #416 from unexpectedjs/depfu/update/npm/offline-gi…

    …thub-changelog-3.0.0
    
    Upgrade offline-github-changelog to version 3.0.0
    papandreou authored Oct 22, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5d2ac97 View commit details

Commits on Oct 25, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5eac2db View commit details

Commits on Jul 8, 2023

  1. Merge pull request #417 from unexpectedjs/depfu/update/npm/@rollup/pl…

    …ugin-multi-entry-6.0.0
    
    Upgrade @rollup/plugin-multi-entry to version 6.0.0
    papandreou authored Jul 8, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d3cf4cf View commit details
  2. Update prettier to ~3.0.0

    papandreou committed Jul 8, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    fd894f4 View commit details
  3. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    daedbad View commit details
  4. Use ubuntu-latest

    papandreou committed Jul 8, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    2953f52 View commit details
  5. Update eslint and plugins

    papandreou committed Jul 8, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    07dfb6f View commit details
  6. Update rollup setup

    papandreou committed Jul 8, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    35f8da6 View commit details
  7. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    dd05d63 View commit details
  8. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    a9aa44b View commit details
  9. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    d060d8c View commit details
  10. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    d147bca View commit details

Commits on Jul 9, 2023

  1. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    19f45f5 View commit details

Commits on Jul 20, 2023

  1. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    0b46f95 View commit details
  2. Update jsdom to ^22.1.0

    papandreou committed Jul 20, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    8786242 View commit details
  3. Only build with node 16+

    papandreou committed Jul 20, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    8906da1 View commit details

Commits on Jul 21, 2023

  1. Merge pull request #473 from unexpectedjs/chore/updateJsdom

    Update jsdom to ^22.1.0
    papandreou authored Jul 21, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9449faa View commit details
  2. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    0d2d016 View commit details
  3. 6.0.0

    papandreou committed Jul 21, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    861a677 View commit details
Showing with 114 additions and 94 deletions.
  1. +6 −6 .github/workflows/ci.yml
  2. +2 −1 .prettierrc
  3. +74 −53 CHANGELOG.md
  4. +21 −23 package.json
  5. +6 −6 rollup.config.js
  6. +5 −5 test/assertions/to-equal.spec.js
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -9,14 +9,14 @@ env:

jobs:
test:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
name: Node ${{ matrix.node }}
strategy:
matrix:
node:
- '10'
- '12'
- '14'
- '16'
- '18'
- '20'
steps:
- uses: actions/checkout@v2
- name: Setup node
@@ -27,7 +27,7 @@ jobs:
- run: npm test

test-targets:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
name: ${{ matrix.targets.name }}
strategy:
matrix:
@@ -48,7 +48,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '14'
node-version: '20'
- run: npm install
- run: npm run ${{ matrix.targets.target }}
- name: Upload coverage
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"singleQuote": true
"singleQuote": true,
"trailingComma": "es5"
}
127 changes: 74 additions & 53 deletions CHANGELOG.md

Large diffs are not rendered by default.

44 changes: 21 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unexpected-dom",
"version": "5.1.0",
"version": "6.0.0",
"description": "DOM plugin for the unexpected assertion libary",
"main": "lib/index.js",
"files": [
@@ -24,7 +24,7 @@
"coverage": "nyc --reporter=lcov --reporter=text npm test",
"preversion": "npm run lint && npm run test && npm run test-docs",
"prepublishOnly": "npm run build && npm run bundle",
"version": "offline-github-changelog --next=${npm_package_version} > CHANGELOG.md && git add CHANGELOG.md",
"version": "offline-github-changelog --next=${npm_new_version} > CHANGELOG.md && git add CHANGELOG.md",
"postversion": "npm run generate-site && gh-pages -d site-build",
"generate-site": "generate-site --require ./bootstrap-unexpected-markdown.js",
"update-examples": "evaldown --comment-marker unexpected-markdown --require ./bootstrap-unexpected-markdown.js --inplace ./documentation"
@@ -47,39 +47,37 @@
},
"homepage": "https://github.com/unexpectedjs/unexpected-dom",
"devDependencies": {
"@rollup/plugin-multi-entry": "^4.0.0",
"@rollup/plugin-commonjs": "^25.0.2",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-terser": "^0.4.3",
"buble": "^0.20.0",
"eslint": "^8.1.0",
"eslint-config-prettier": "^8.2.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-mocha": "^10.0.1",
"eslint-plugin-n": "^15.1.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-standard": "^5.0.0",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-mocha": "^10.1.0",
"eslint-plugin-n": "^16.0.1",
"eslint-plugin-promise": "^6.1.1",
"evaldown": "^1.2.2",
"fs-extra": "^9.0.0",
"gh-pages": "^3.0.0",
"gh-pages": "^4.0.0",
"istanbul": "^0.4.5",
"jsdom": "^15.2.0",
"jsdom": "^22.1.0",
"karma": "^6.1.2",
"karma-browserstack-launcher": "1.6.0",
"karma-chrome-launcher": "^3.0.0",
"karma-mocha": "^2.0.0",
"magicpen": "^6.0.2",
"mocha": "^8.2.1",
"nyc": "^15.0.0",
"offline-github-changelog": "^1.2.0",
"prettier": "~2.6.0",
"rollup": "^2.0.2",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-json": "^4.0.0",
"offline-github-changelog": "^3.0.0",
"prettier": "~3.0.0",
"rollup": "^3.26.2",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-resolve": "^5.0.0",
"rollup-plugin-terser": "^7.0.0",
"unexpected": "^13.0.0",
"unexpected-documentation-site-generator": "^7.0.1",
"unexpected": "^13.2.0",
"unexpected-documentation-site-generator": "^8.0.1",
"unexpected-snapshot": "^2.0.0"
},
"dependencies": {
12 changes: 6 additions & 6 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const terser = require('rollup-plugin-terser').terser;
const terser = require('@rollup/plugin-terser');

const plugins = [
require('rollup-plugin-json')(),
require('rollup-plugin-commonjs')(),
require('rollup-plugin-node-resolve')(),
require('@rollup/plugin-json')(),
require('@rollup/plugin-commonjs')(),
require('@rollup/plugin-node-resolve')(),
require('rollup-plugin-node-globals')(),
];

@@ -13,7 +13,7 @@ module.exports = [
output: {
file: 'unexpected-dom.js',
name: 'unexpected.dom',
exports: 'named',
exports: 'auto',
format: 'umd',
sourcemap: false,
strict: false,
@@ -25,7 +25,7 @@ module.exports = [
output: {
file: 'unexpected-dom.min.js',
name: 'unexpected.dom',
exports: 'named',
exports: 'auto',
format: 'umd',
sourcemap: false,
strict: false,
10 changes: 5 additions & 5 deletions test/assertions/to-equal.spec.js
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ describe('"to equal" assertion', () => {
}

describe('on HTML elements', () => {
it('should succeeds if they are equal', () => {
it('should succeed if they are equal', () => {
expect(
parseHtml(
'<ul><li>John</li><li class="winner">Jane</li><li>Annie</li></ul>'
@@ -73,7 +73,7 @@ describe('"to equal" assertion', () => {
});

describe('on DOM documents', () => {
it('should succeeds if they are equal', () => {
it('should succeed if they are equal', () => {
expect(
parseHtmlDocument(
'<!DOCTYPE html><html><body><h1>Tournament</h1><ul><li>John</li><li class="winner">Jane</li><li>Annie</li></ul></body></html>'
@@ -127,7 +127,7 @@ describe('"to equal" assertion', () => {
});

describe('on DOM document fragments', () => {
it('should succeeds if they are equal', () => {
it('should succeed if they are equal', () => {
expect(
parseHtmlFragment(
'<h1>Tournament</h1><ul><li>John</li><li class="winner">Jane</li><li>Annie</li></ul>'
@@ -208,7 +208,7 @@ describe('"to equal" assertion', () => {
});

describe('on text nodes', () => {
it('should succeeds if they are equal', () => {
it('should succeed if they are equal', () => {
expect(parseHtml('text'), 'to equal', parseHtml('text'));
});

@@ -229,7 +229,7 @@ describe('"to equal" assertion', () => {
});

describe('on node lists', () => {
it('should succeeds if they are equal', () => {
it('should succeed if they are equal', () => {
expect(
parseHtmlFragment('<div>one</div><div>two</div><div>three</div>')
.childNodes,