mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
Improve a11y (#1841)
Improve accessibility by removing unnecessary tags without hrefs. Also remove many eslint errors and warnings.
This commit is contained in:
@@ -45,9 +45,9 @@ describe("error handling tests", () => {
|
||||
context: [
|
||||
{
|
||||
type: "planet",
|
||||
id: "earth"
|
||||
}
|
||||
]
|
||||
id: "earth",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
afterEach(() => {
|
||||
@@ -55,9 +55,9 @@ describe("error handling tests", () => {
|
||||
fetchMock.restore();
|
||||
});
|
||||
|
||||
it("should create a normal error, if the content type is not scmm-error", done => {
|
||||
it("should create a normal error, if the content type is not scmm-error", (done) => {
|
||||
fetchMock.getOnce("/api/v2/error", {
|
||||
status: 404
|
||||
status: 404,
|
||||
});
|
||||
|
||||
apiClient.get("/error").catch((err: Error) => {
|
||||
@@ -67,13 +67,13 @@ describe("error handling tests", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("should create an backend error, if the content type is scmm-error", done => {
|
||||
it("should create an backend error, if the content type is scmm-error", (done) => {
|
||||
fetchMock.getOnce("/api/v2/error", {
|
||||
status: 404,
|
||||
headers: {
|
||||
"Content-Type": "application/vnd.scmm-error+json;v=2"
|
||||
"Content-Type": "application/vnd.scmm-error+json;v=2",
|
||||
},
|
||||
body: earthNotFoundError
|
||||
body: earthNotFoundError,
|
||||
});
|
||||
|
||||
apiClient.get("/error").catch((err: BackendError) => {
|
||||
@@ -87,8 +87,8 @@ describe("error handling tests", () => {
|
||||
expect(err.context).toEqual([
|
||||
{
|
||||
type: "planet",
|
||||
id: "earth"
|
||||
}
|
||||
id: "earth",
|
||||
},
|
||||
]);
|
||||
done();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user