Jest
この記事では以下の Window.js と CheckHostName.js を使用します。 export const getHostName = () => { return window.location.hostname; }; import * as Window from "./Window"; export const isTwitter = () => { return window.location.hostname ===…
この記事では以下の Window.js と CheckHostName.js を使用します。 export const getHostName = () => { return window.location.hostname; }; import * as Window from "./Window"; export const isTwitter = () => { return window.location.hostname ===…