Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
kendallgassner committed Oct 11, 2023
1 parent 87a47bb commit 5886dc6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"jest": "^29.7.0"
},
"dependencies": {
"@github/markdownlint-github": "^0.5.0",
"@github/markdownlint-github": "^0.6.0",
"markdownlint": "^0.31.1"
}
}
}
12 changes: 6 additions & 6 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { validate } from "./validate.js";
test("no-alt-text: should return errors", async () => {
let result = await validate("![]()");
expect(result[0]).toBe("Images should have alternate text (alt text)");
// result = await validate('<img src="cat.png">');
// expect(result[0]).toBe("Images should have alternate text (alt text)");
// result = await validate('<img alt src="cat.png">');
// expect(result[0]).toBe("Images should have alternate text (alt text)");
// result = await validate('<img src="cat.png" width="10px">');
// expect(result[0]).toBe("Images should have alternate text (alt text)");
result = await validate('<img src="cat.png">');
expect(result[0]).toBe("Please provide an alternative text for the image.");
result = await validate('<img alt src="cat.png">');
expect(result[0]).toBe("Please provide an alternative text for the image.");
result = await validate('<img src="cat.png" width="10px">');
expect(result[0]).toBe("Please provide an alternative text for the image.");
});
test("no-default-alt-text: should return errors", async () => {
let result = await validate("![Cleanshot 2020-01-01 at 12.00.00.png]()");
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@
resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@github/markdownlint-github@^0.5.0":
version "0.5.0"
resolved "https://registry.npmjs.org/@github/markdownlint-github/-/markdownlint-github-0.5.0.tgz"
integrity sha512-m8a7xklDJv8+C5hpaeYE2Jb0IEBwT7fwZpEH3uhYmlcpggRoo0kcnfedB0vUkPfM6Ip7AZgoC3G1SwS/ihadZQ==
"@github/markdownlint-github@^0.6.0":
version "0.6.0"
resolved "https://registry.npmjs.org/@github/markdownlint-github/-/markdownlint-github-0.6.0.tgz"
integrity sha512-THR2p9AExA1lxLoBIJnmFg8VGOCMDNcQDxA6O/JvSyL4ODqGrqozbMsH4xCE19+7Li+NeqwqJEdmmVas5LjT1A==
dependencies:
lodash "^4.17.15"

Expand Down

0 comments on commit 5886dc6

Please sign in to comment.