mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
wip: code formatting nits continued
This commit is contained in:
9
test/replace.spec.js
Normal file
9
test/replace.spec.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import replace from '../src/replace';
|
||||
|
||||
describe('replace', () => {
|
||||
it('should replace the matched pattern', () => {
|
||||
const string = 'abcde';
|
||||
expect(replace(string, 'de', '123')).toBe('abc123');
|
||||
expect(replace(string, /[bd]/g, '-')).toBe('a-c-e');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user