mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce semicolons in eslint
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
0f3f5611ba
commit
1477bb8274
531 files changed
+3979
-3975
No files matched your search
@@ -1,18 +1,18 @@
|
||||
import React from "react"
|
||||
import { displayBooleans } from "../display-booleans"
|
||||
import React from "react";
|
||||
import { displayBooleans } from "../display-booleans";
|
||||
|
||||
describe("displayBooleans tests", () => {
|
||||
it("should not do anything to div's if shouldShow is false", () => {
|
||||
expect(displayBooleans(false, <div></div>)).toStrictEqual(<div></div>)
|
||||
})
|
||||
expect(displayBooleans(false, <div></div>)).toStrictEqual(<div></div>);
|
||||
});
|
||||
|
||||
it("should not do anything to booleans's if shouldShow is false", () => {
|
||||
expect(displayBooleans(false, true)).toStrictEqual(true)
|
||||
expect(displayBooleans(false, false)).toStrictEqual(false)
|
||||
})
|
||||
expect(displayBooleans(false, true)).toStrictEqual(true);
|
||||
expect(displayBooleans(false, false)).toStrictEqual(false);
|
||||
});
|
||||
|
||||
it("should stringify booleans when shouldShow is true", () => {
|
||||
expect(displayBooleans(true, true)).toStrictEqual("true")
|
||||
expect(displayBooleans(true, false)).toStrictEqual("false")
|
||||
})
|
||||
})
|
||||
expect(displayBooleans(true, true)).toStrictEqual("true");
|
||||
expect(displayBooleans(true, false)).toStrictEqual("false");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user