Skip to content

Commit

Permalink
+ Correct english texts
Browse files Browse the repository at this point in the history
+ Fix code comments and params
+ Add some unit test
  • Loading branch information
drakerian committed Oct 1, 2014
1 parent 0bc99f6 commit 28b87d8
Show file tree
Hide file tree
Showing 15 changed files with 409 additions and 162 deletions.
21 changes: 21 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Configure a mochaTest task
mochaTest: {
test: {
options: {
reporter: 'spec',
quiet: false // Optionally suppress output to standard out (defaults to false)
},
src: ['test/**/*.js']
}
}
});

// Add the grunt-mocha-test tasks.
grunt.loadNpmTasks('grunt-mocha-test');
// Default task(s).
grunt.registerTask('default', ['mochaTest']);
};
8 changes: 7 additions & 1 deletion HISTORY
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.0.1 2014-09-30
----------------
- First version
- First version

0.0.2 2014-10-01
----------------
- Add grunt, mocha and chai to depends.
- Add unit test.
- Correct some code comments and texts
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Open browse, and set in URL:

http://localhost:3000/explorer

To test a specific filter, use for example in GET method:
To test a specific filter in GET method, use for example:

{"q" : "friends, romans, countrymen"}

Expand Down
1 change: 1 addition & 0 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"errorhandler": "^1.1.1",
"loopback": "^2.0.0",
"loopback-boot": "^2.0.0",
"loopback-connector-elastic-search": "0.0.1-b",
"loopback-datasource-juggler": "^2.7.0",
"serve-favicon": "^2.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./lib/elastic');
module.exports = require('./lib/esConnector');
Loading

0 comments on commit 28b87d8

Please sign in to comment.