Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.

Commit 1bb8104

Browse files
committed
Remove old tests and add a missing semicolon
1 parent 4151f62 commit 1bb8104

File tree

1 file changed

+1
-43
lines changed

1 file changed

+1
-43
lines changed

test/utils.test.js

+1-43
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
const interleave = require('../src/utils/tagged-template-literal').interleave
2-
const isLastLineWhitespaceOnly = require('../src/utils/general').isLastLineWhitespaceOnly
3-
const isEmptyOrSpaceOnly = require('../src/utils/general').isEmptyOrSpaceOnly
42

53
describe('utils', () => {
64
describe('interleave', () => {
@@ -157,48 +155,8 @@ describe('utils', () => {
157155
}
158156
]
159157
expect(interleave(quasis2, expressions2)).toEqual(
160-
'\n display: $dummyValue; -styled-mixin0: dummyValue\n'
158+
'\n display: $dummyValue; -styled-mixin0: dummyValue;\n'
161159
)
162160
})
163161
})
164-
165-
describe('isLastLineWhitespaceOnly', () => {
166-
it('should return true for empty string', () => {
167-
expect(isLastLineWhitespaceOnly('')).toEqual(true)
168-
})
169-
170-
it('should return true for string of spaces', () => {
171-
expect(isLastLineWhitespaceOnly(' ')).toEqual(true)
172-
})
173-
174-
it('should return true for string of spaces and tabs', () => {
175-
expect(isLastLineWhitespaceOnly(' \t ')).toEqual(true)
176-
})
177-
178-
it('should return false for string with something other than space and tab', () => {
179-
expect(isLastLineWhitespaceOnly('not space')).toEqual(false)
180-
})
181-
182-
it('should return true if last line has only space and tab', () => {
183-
expect(isLastLineWhitespaceOnly('not space\n ')).toEqual(true)
184-
})
185-
})
186-
187-
describe('isEmptyOrSpaceOnly', () => {
188-
it('should return true for empty string', () => {
189-
expect(isEmptyOrSpaceOnly('')).toEqual(true)
190-
})
191-
192-
it('should return true for consecutive empty string', () => {
193-
expect(isEmptyOrSpaceOnly(' ')).toEqual(true)
194-
})
195-
196-
it('should return true for string of spaces and tabs', () => {
197-
expect(isEmptyOrSpaceOnly(' \t ')).toEqual(true)
198-
})
199-
200-
it('should return false for string of newline', () => {
201-
expect(isEmptyOrSpaceOnly('\n')).toEqual(false)
202-
})
203-
})
204162
})

0 commit comments

Comments
 (0)