mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-29 13:42:28 +02:00
refactor(starter): upgrade and move to typescript
This commit is contained in:
@@ -4,6 +4,6 @@
|
||||
@import "../../../assets/scss/mixins";
|
||||
|
||||
.copyright {
|
||||
color: color.adjust($color-gray, 18%);
|
||||
color: color.adjust($color-gray, $whiteness: 18%);
|
||||
font-size: $typographic-small-font-size;
|
||||
}
|
||||
|
@@ -2,10 +2,11 @@ import React from "react";
|
||||
import renderer from "react-test-renderer";
|
||||
|
||||
import { Copyright } from "@/components/Sidebar/Copyright";
|
||||
import * as mocks from "@/mocks";
|
||||
|
||||
describe("Copyright", () => {
|
||||
it("renders correctly", () => {
|
||||
const props = { copyright: "copyright" };
|
||||
const props = { copyright: mocks.siteMetadata.site.siteMetadata.copyright };
|
||||
const tree = renderer.create(<Copyright {...props} />).toJSON();
|
||||
expect(tree).toMatchSnapshot();
|
||||
});
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
|
||||
import styles from "./Copyright.module.scss";
|
||||
import * as styles from "./Copyright.module.scss";
|
||||
|
||||
type Props = {
|
||||
copyright: string;
|
||||
|
@@ -1,9 +1,7 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Copyright renders correctly 1`] = `
|
||||
<div
|
||||
className="copyright"
|
||||
>
|
||||
copyright
|
||||
<div>
|
||||
All rights reserved.
|
||||
</div>
|
||||
`;
|
||||
|
Reference in New Issue
Block a user