app/frontend/application/application.component.test.tsx in decidim-comments-0.8.4 vs app/frontend/application/application.component.test.tsx in decidim-comments-0.9.0
- old
+ new
@@ -1,10 +1,8 @@
import { shallow } from "enzyme";
import * as React from "react";
-import * as moment from "moment";
-
import Application from "./application.component";
const { I18n } = require("react-i18nify");
describe("<Application />", () => {
@@ -19,18 +17,7 @@
<Application locale={locale}>
<div>My application</div>
</Application>,
);
expect(I18n.setLocale).toHaveBeenCalledWith(locale);
- });
-
- it("should set moment locale to locale prop", () => {
- spyOn(moment, "locale");
- const locale = "ca";
- shallow(
- <Application locale={locale}>
- <div>My application</div>
- </Application>,
- );
- expect(moment.locale).toHaveBeenCalledWith(locale);
});
});