1
1
import * as expect from 'expect' ;
2
- import computeLines from '../src/compute-lines' ;
2
+ import { computeLineInformation } from '../src/compute-lines' ;
3
3
4
4
describe ( 'Testing compute lines utils' , ( ) : void => {
5
5
it ( 'Should it avoid trailing spaces' , ( ) : void => {
@@ -11,7 +11,7 @@ describe('Testing compute lines utils', (): void => {
11
11
12
12
` ;
13
13
14
- expect ( computeLines ( oldCode , newCode ) )
14
+ expect ( computeLineInformation ( oldCode , newCode ) )
15
15
. toMatchObject ( {
16
16
lineInformation : [
17
17
{
@@ -36,7 +36,7 @@ describe('Testing compute lines utils', (): void => {
36
36
const newCode = `test
37
37
newLine` ;
38
38
39
- expect ( computeLines ( oldCode , newCode ) )
39
+ expect ( computeLineInformation ( oldCode , newCode ) )
40
40
. toMatchObject ( {
41
41
lineInformation : [
42
42
{
@@ -69,7 +69,7 @@ describe('Testing compute lines utils', (): void => {
69
69
oldLine` ;
70
70
const newCode = 'test' ;
71
71
72
- expect ( computeLines ( oldCode , newCode ) )
72
+ expect ( computeLineInformation ( oldCode , newCode ) )
73
73
. toMatchObject ( {
74
74
lineInformation : [
75
75
{
@@ -103,7 +103,7 @@ describe('Testing compute lines utils', (): void => {
103
103
const newCode = `test
104
104
newLine` ;
105
105
106
- expect ( computeLines ( oldCode , newCode , true ) )
106
+ expect ( computeLineInformation ( oldCode , newCode , true ) )
107
107
. toMatchObject ( {
108
108
lineInformation : [
109
109
{
@@ -141,7 +141,7 @@ describe('Testing compute lines utils', (): void => {
141
141
const newCode = `test
142
142
newLine` ;
143
143
144
- expect ( computeLines ( oldCode , newCode ) )
144
+ expect ( computeLineInformation ( oldCode , newCode ) )
145
145
. toMatchObject ( {
146
146
lineInformation : [
147
147
{
0 commit comments