Update dependencies, fixes #562

pull/565/head
Jeroen Akkerman 8 months ago
parent d9ab397b88
commit 35587a9477

@ -5,5 +5,6 @@ export default defineConfig({
excludeSpecPattern: [ excludeSpecPattern: [
'**/*.html', '**/*.html',
], ],
video: true,
}, },
}); });

@ -11,7 +11,8 @@ describe('URL prompts', () => {
cy.window().then(($win) => { cy.window().then(($win) => {
const stub = cy.stub($win, 'prompt'); const stub = cy.stub($win, 'prompt');
cy.get('button.link').click().then(() => { cy.get('button.link').click();
cy.get('button.link').then(() => {
expect(stub).to.be.calledWith('URL for the link:', 'https://'); expect(stub).to.be.calledWith('URL for the link:', 'https://');
}); });
}); });
@ -23,7 +24,8 @@ describe('URL prompts', () => {
cy.window().then(($win) => { cy.window().then(($win) => {
const stub = cy.stub($win, 'prompt'); const stub = cy.stub($win, 'prompt');
cy.get('button.image').click().then(() => { cy.get('button.image').click();
cy.get('button.image').then(() => {
expect(stub).to.be.calledWith('URL of the image:', 'https://'); expect(stub).to.be.calledWith('URL of the image:', 'https://');
}); });
}); });
@ -52,7 +54,8 @@ describe('URL prompts', () => {
cy.window().then(($win) => { cy.window().then(($win) => {
const stub = cy.stub($win, 'prompt'); const stub = cy.stub($win, 'prompt');
stub.returns('https://example.com'); stub.returns('https://example.com');
cy.get('button.link').click().then(() => { cy.get('button.link').click();
cy.get('button.link').then(() => {
expect(stub).to.be.calledWith('URL for the link:', 'https://'); expect(stub).to.be.calledWith('URL for the link:', 'https://');
stub.restore(); stub.restore();
}); });
@ -63,7 +66,8 @@ describe('URL prompts', () => {
cy.window().then(($win) => { cy.window().then(($win) => {
const stub = cy.stub($win, 'prompt'); const stub = cy.stub($win, 'prompt');
stub.returns('https://example.eu'); stub.returns('https://example.eu');
cy.get('button.link').click().then(() => { cy.get('button.link').click();
cy.get('button.link').then(() => {
expect(stub).to.be.calledWith('URL for the link:', 'https://'); expect(stub).to.be.calledWith('URL for the link:', 'https://');
stub.restore(); stub.restore();
}); });

1037
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -19,27 +19,27 @@
"license": "MIT", "license": "MIT",
"author": "Jeroen Akkerman", "author": "Jeroen Akkerman",
"dependencies": { "dependencies": {
"@types/codemirror": "^5.60.4", "@types/codemirror": "^5.60.10",
"@types/marked": "^4.0.7", "@types/marked": "^4.0.7",
"codemirror": "^5.63.1", "codemirror": "^5.65.15",
"codemirror-spell-checker": "1.1.2", "codemirror-spell-checker": "1.1.2",
"marked": "^4.1.0" "marked": "^4.1.0"
}, },
"devDependencies": { "devDependencies": {
"browserify": "^17.0.0", "browserify": "^17.0.0",
"cypress": "^10.8.0", "cypress": "^13.2.0",
"eslint": "^8.23.1", "eslint": "^8.50.0",
"eslint-plugin-cypress": "^2.12.1", "eslint-plugin-cypress": "^2.15.1",
"gulp": "^4.0.2", "gulp": "^4.0.2",
"gulp-clean-css": "^4.2.0", "gulp-clean-css": "^4.3.0",
"gulp-concat": "^2.6.1", "gulp-concat": "^2.6.1",
"gulp-eslint": "^6.0.0", "gulp-eslint": "^6.0.0",
"gulp-header": "^2.0.9", "gulp-header": "^2.0.9",
"gulp-rename": "^2.0.0", "gulp-rename": "^2.0.0",
"gulp-terser": "^2.1.0", "gulp-terser": "^2.1.0",
"gulp-uglify": "^3.0.2", "gulp-uglify": "^3.0.2",
"typescript": "^4.8.3", "typescript": "^5.2.2",
"vinyl-buffer": "^1.0.0", "vinyl-buffer": "^1.0.1",
"vinyl-source-stream": "^2.0.0" "vinyl-source-stream": "^2.0.0"
}, },
"repository": "github:Ionaru/easy-markdown-editor", "repository": "github:Ionaru/easy-markdown-editor",

@ -1,6 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es3", "target": "es3",
"ignoreDeprecations": "5.0",
"strict": true, "strict": true,
"noImplicitReturns": true, "noImplicitReturns": true,
"noEmit": true "noEmit": true

Loading…
Cancel
Save