mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 22:48:23 +00:00
Updated project linter rules and ran it
This commit is contained in:
@@ -5,7 +5,7 @@ import Status from "../status";
|
||||
import {
|
||||
STATUS_FAILURE,
|
||||
STATUS_RUNNING,
|
||||
STATUS_SUCCESS
|
||||
STATUS_SUCCESS,
|
||||
} from "shared/constants/status";
|
||||
|
||||
jest.dontMock("../status");
|
||||
@@ -16,10 +16,10 @@ describe("Status component", () => {
|
||||
const instance = status.instance();
|
||||
|
||||
expect(
|
||||
instance.shouldComponentUpdate({ status: STATUS_FAILURE })
|
||||
instance.shouldComponentUpdate({ status: STATUS_FAILURE }),
|
||||
).toBeFalsy();
|
||||
expect(
|
||||
instance.shouldComponentUpdate({ status: STATUS_SUCCESS })
|
||||
instance.shouldComponentUpdate({ status: STATUS_SUCCESS }),
|
||||
).toBeTruthy();
|
||||
expect(status.hasClass("failure")).toBeTruthy();
|
||||
});
|
||||
|
Reference in New Issue
Block a user