Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 32ba069

Browse files
committed
fixed lint
1 parent 8c665d7 commit 32ba069

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

spec/text-buffer-spec.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
const path = require('path');
2-
const TextBuffer = require ('../src/text-buffer');
1+
const path = require('path')
2+
const TextBuffer = require('../src/text-buffer')
33

44
describe('when a buffer is already open', () => {
5-
it('replaces foo( with bar( using /\bfoo\(\b/gim', () => {
6-
const filePath = path.join(__dirname, 'fixtures','sample.js');
7-
const buffer = new TextBuffer();
8-
buffer.setPath(filePath);
9-
buffer.setText('foo(x)');
10-
buffer.replace(/\bfoo\(\b/gim,'bar(');
5+
it('replaces foo( with bar( using /\bfoo\\(\b/gim', () => {
6+
const filePath = path.join(__dirname, 'fixtures', 'sample.js')
7+
const buffer = new TextBuffer()
8+
buffer.setPath(filePath)
9+
buffer.setText('foo(x)')
10+
buffer.replace(/\bfoo\(\b/gim, 'bar(')
1111

12-
expect(buffer.getText()).toBe('bar(x)');
13-
});
14-
});
12+
expect(buffer.getText()).toBe('bar(x)')
13+
})
14+
})

0 commit comments

Comments
 (0)