Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
feather
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
feather
Commits
32810336
Commit
32810336
authored
May 17, 2018
by
Cole Bemis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Test replace() in node env
parent
e374f72c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
replace.node.test.js.snap
src/__tests__/__snapshots__/replace.node.test.js.snap
+3
-0
replace.node.test.js
src/__tests__/replace.node.test.js
+10
-0
No files found.
src/__tests__/__snapshots__/replace.node.test.js.snap
0 → 100644
View file @
32810336
// 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."`;
src/__tests__/replace.node.test.js
0 → 100644
View file @
32810336
/**
* @jest-environment node
*/
/* eslint-env jest */
import
replace
from
'
../replace
'
;
test
(
'
throws an error when run in node environment
'
,
()
=>
{
expect
(
replace
).
toThrowErrorMatchingSnapshot
();
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment