UNPKG
awesome-string
Version:
latest (1.1.1)
1.1.1
1.1.0
The ultimate JavaScript string library
hyeonil.github.io
hyeonil/awesome-string
awesome-string
/
test
/
util
/
version.js
11 lines
(8 loc)
•
275 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
as
from
'../awesome-string'
;
import
{ expect }
from
'chai'
;
import
{
REGEXP_SEMVER
}
from
'../const'
;
describe
(
'version'
,
function
(
) {
it
(
'should match semantic version number pattern'
,
function
(
) {
expect
(
REGEXP_SEMVER
.
test
(
as
.
version
)).
to
.
be
.
true
; }); });