Skip to content

Commit

Permalink
Fix tests' message
Browse files Browse the repository at this point in the history
  • Loading branch information
EdinaBolkeny committed Jun 30, 2022
1 parent 0b3af01 commit dc80975
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/utils/mout_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const {
lowerCase,
} = require('../../lib/utils/mout');

describe('util/mout - randHex', function () {
describe('utils/mout - randHex', function () {
it('should return a random hexadecimal value', function () {
const a = randHex(),
b = randHex();
Expand All @@ -36,7 +36,7 @@ describe('util/mout - randHex', function () {

});

describe('util/mout - guid', function () {
describe('utils/mout - guid', function () {
it('returns a random guid each call', function () {
let a = guid();
let b = guid();
Expand All @@ -47,7 +47,7 @@ describe('util/mout - guid', function () {
});
});

describe('util/mout - startsWith', function () {
describe('utils/mout - startsWith', function () {

it('should return true if string starts with prefix', function () {
assert(startsWith('lorem-ipsum', 'lorem'));
Expand All @@ -74,7 +74,7 @@ describe('util/mout - startsWith', function () {

});

describe('util/mout - camelCase', function () {
describe('utils/mout - camelCase', function () {
it('should convert hyphenated text to camelCase', function () {
const str = 'lorem-ipsum-dolor';
assert.strictEqual(camelCase(str), 'loremIpsumDolor');
Expand Down Expand Up @@ -114,7 +114,7 @@ describe('util/mout - camelCase', function () {
});
});

describe('util/mout - unCamelCase', function () {
describe('utils/mout - unCamelCase', function () {

it('should add space between camelCase text', function () {
assert.strictEqual(unCamelCase('loremIpsumDolor'), 'lorem ipsum dolor');
Expand All @@ -136,7 +136,7 @@ describe('util/mout - unCamelCase', function () {

});

describe('util/mout - sentenceCase', function () {
describe('utils/mout - sentenceCase', function () {
it('should uppercase first char of each sentence and lowercase others', function () {
const str = 'lorem Ipsum doLOr. sit amet dolor.';
assert.strictEqual(sentenceCase(str), 'Lorem ipsum dolor. Sit amet dolor.');
Expand All @@ -151,7 +151,7 @@ describe('util/mout - sentenceCase', function () {
});
});

describe('util/mout - trim', function () {
describe('utils/mout - trim', function () {
it('should remove whitespaces from begin and end of string', function () {
const str = ' \t \t \t\t lorem ipsum \t \t \t\t ';
assert.strictEqual(trim(str), 'lorem ipsum');
Expand All @@ -172,7 +172,7 @@ describe('util/mout - trim', function () {
});
});

describe('util/mout - typecast', function () {
describe('utils/mout - typecast', function () {
it('should typecast values if Number, Boolean, null or undefined', function () {
assert.strictEqual(typecast('true'), true );
assert.strictEqual(typecast('false'), false );
Expand Down

0 comments on commit dc80975

Please sign in to comment.