UNPKG
strility
Version:
latest (1.3.1)
1.3.1
1.3.0
1.2.0
1.1.0
1.0.0
Strility is a string manipulation library
github.com/bjarneo/strility
bjarneo/strility
strility
/
tests
/
swapcase.test.js
8 lines
(5 loc)
•
268 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
const
{ strictEqual } =
require
(
'assert'
);
const
{ swapCase } =
require
(
'../.'
);
describe
(
'#swapCase'
,
() =>
{
it
(
'should swap case from lower to upper and upper to lower case'
,
() =>
strictEqual
(
swapCase
(
'IhaveupperCASEletters'
),
'iHAVEUPPERcaseLETTERS'
)); });