From f87cf01282ffb169a1e3083e22760ec1da9d72d0 Mon Sep 17 00:00:00 2001 From: Estevao Soares dos Santos Date: Wed, 9 Mar 2022 15:19:34 +0000 Subject: [PATCH] chore: fix tests for CI --- package-lock.json | 46 +++++++++++++++++++++++++++++++++++++++++---- package.json | 11 ++++++----- test/cli/basic.html | 1 - test/cli/basic.md | 2 -- 4 files changed, 48 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7815c0d..c487f26 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,8 @@ "license": "MIT", "dependencies": { "commander": "^9.0.0", - "jsdom": "^19.0.0" + "jsdom": "^19.0.0", + "semver-sort": "^1.0.0" }, "bin": { "showdown": "bin/showdown.js" @@ -4798,7 +4799,6 @@ "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, "bin": { "semver": "bin/semver" } @@ -4812,6 +4812,29 @@ "node": ">=0.10.0" } }, + "node_modules/semver-sort": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-sort/-/semver-sort-1.0.0.tgz", + "integrity": "sha512-JicVlQKz/C//4BiPmbHEDou6HihXxo5xqB/8Hm9FaLJ6HHkRRvYgCECq4u/z0XF8kyJQ/KAZt++A/kYz/oOSSg==", + "dependencies": { + "semver": "^5.0.3", + "semver-regex": "^3.1.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/semver-sort/node_modules/semver-regex": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.3.tgz", + "integrity": "sha512-Aqi54Mk9uYTjVexLnR67rTyBusmwd04cLkHy9hNvk3+G3nT2Oyg7E0l4XVbOaNwIvQ3hHeYxGcyEy+mKreyBFQ==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/serialize-javascript": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", @@ -9249,8 +9272,7 @@ "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "semver-regex": { "version": "1.0.0", @@ -9258,6 +9280,22 @@ "integrity": "sha1-kqSWkGX5xwxpR1PVUkj8aPj2Usk=", "dev": true }, + "semver-sort": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-sort/-/semver-sort-1.0.0.tgz", + "integrity": "sha512-JicVlQKz/C//4BiPmbHEDou6HihXxo5xqB/8Hm9FaLJ6HHkRRvYgCECq4u/z0XF8kyJQ/KAZt++A/kYz/oOSSg==", + "requires": { + "semver": "^5.0.3", + "semver-regex": "^3.1.2" + }, + "dependencies": { + "semver-regex": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.3.tgz", + "integrity": "sha512-Aqi54Mk9uYTjVexLnR67rTyBusmwd04cLkHy9hNvk3+G3nT2Oyg7E0l4XVbOaNwIvQ3hHeYxGcyEy+mKreyBFQ==" + } + } + }, "serialize-javascript": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", diff --git a/package.json b/package.json index 377955e..745c039 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,8 @@ "Estevão Santos" ], "funding": { - "type" : "individual", - "url" : "https://www.paypal.me/tiviesantos" + "type": "individual", + "url": "https://www.paypal.me/tiviesantos" }, "repository": { "type": "git", @@ -63,10 +63,11 @@ "performance-now": "^2.1.0", "quiet-grunt": "^0.2.0", "sinon": "*", - "source-map-support": "^0.5.21" + "source-map-support": "^0.5.21", + "semver-sort": "^1.0.0" }, "dependencies": { - "jsdom": "^19.0.0", - "commander": "^9.0.0" + "commander": "^9.0.0", + "jsdom": "^19.0.0" } } diff --git a/test/cli/basic.html b/test/cli/basic.html index c42f755..5c98be4 100644 --- a/test/cli/basic.html +++ b/test/cli/basic.html @@ -1,2 +1 @@

some title

-

Test bold and italic

diff --git a/test/cli/basic.md b/test/cli/basic.md index a5256ad..c698903 100644 --- a/test/cli/basic.md +++ b/test/cli/basic.md @@ -1,3 +1 @@ # some title - -Test **bold** and _italic_