mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
test: Test replace() in node env
This commit is contained in:
parent
e374f72cb6
commit
32810336ec
3
src/__tests__/__snapshots__/replace.node.test.js.snap
Normal file
3
src/__tests__/__snapshots__/replace.node.test.js.snap
Normal file
@ -0,0 +1,3 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`throws an error when run in node environment 1`] = `"\`feather.replace()\` only works in a browser environment."`;
|
10
src/__tests__/replace.node.test.js
Normal file
10
src/__tests__/replace.node.test.js
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* @jest-environment node
|
||||
*/
|
||||
|
||||
/* eslint-env jest */
|
||||
import replace from '../replace';
|
||||
|
||||
test('throws an error when run in node environment', () => {
|
||||
expect(replace).toThrowErrorMatchingSnapshot();
|
||||
});
|
Loading…
Reference in New Issue
Block a user