diff --git a/dokusho/src/app/DokuUtil.re b/dokusho/src/app/DokuUtil.re index a628f72..a93768d 100644 --- a/dokusho/src/app/DokuUtil.re +++ b/dokusho/src/app/DokuUtil.re @@ -26,7 +26,10 @@ module DokuUtil = { module DateUtil = { open Types; - let availableDates = (d: readingHistory) => d.days |> List.map(d => Js.Date.fromString(d.date)) |> (ls) => [Js.Date.make(), ...ls] |> Array.of_list; + let availableDates = (d: readingHistory) => d.days + |> List.map(d => Js.Date.fromString(d.date)) + |> (ls) => [Js.Date.make(), ...ls] + |> Array.of_list; let dateWithoutTime = selectedDate => Js.Date.fromFloat(Js.Date.utcWithYMDHMS( ~year=Js.Date.getFullYear(selectedDate), diff --git a/dokusho/src/test/Login_test.re b/dokusho/src/test/Login_test.re new file mode 100644 index 0000000..f437859 --- /dev/null +++ b/dokusho/src/test/Login_test.re @@ -0,0 +1,13 @@ +open Jest; + +describe("Login", () => { + open ExpectJs; + + describe("Login.make", () => { + test("renders with no parameters", () => { + let component = ReactShallowRenderer.renderWithRenderer(); + + expect(Js.Undefined.return(component)) |> toBeDefined; + }); + }); +});