Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioricali committed Dec 25, 2017
1 parent 36e7f3b commit 23deb36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export declare namespace be {
function emptyString(value: string): boolean;
function alphanumeric(value: string): boolean;
function startWith(value: string, string: string, insensitive: boolean): boolean;
function endWith(value: string, string: string, insensitive: boolean): boolean;
function endWith(value: string, string: string, insensitive?: boolean): boolean;
function palindrome(value: string): boolean;
function char(value: string): boolean;
function space(value: string): boolean;
Expand Down
5 changes: 5 additions & 0 deletions test/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,11 @@ describe('endWith', function () {
console.log(result);
assert.equal(result, true);
});
it('symbol ?, should be return true', function () {
var result = be.endWith('?', 'string?');
console.log(result);
assert.equal(result, true);
});
});

describe('char', function () {
Expand Down

0 comments on commit 23deb36

Please sign in to comment.