You've already forked search-query-parser
add a first simple test case
This commit is contained in:
14
test/test.js
Normal file
14
test/test.js
Normal file
@@ -0,0 +1,14 @@
|
||||
var assert = require('assert')
|
||||
, searchquery = require('search-query');
|
||||
|
||||
|
||||
describe('Search query parser', function () {
|
||||
|
||||
it('should return a simple string when zero keyword present', function () {
|
||||
var searchQuery = "fancy pyjama wear";
|
||||
var parsedSearchQuery = searchquery.parse(searchQuery);
|
||||
parsedSearchQuery.should.be.a.string;
|
||||
parsedSearchQuery.should.equal(searchQuery);
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user