Skip to content

Commit

Permalink
Merged branch master into master
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslabbe committed Sep 26, 2016
2 parents eb10101 + a56ca5f commit b5a909a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -6,5 +6,6 @@ env:
install:
- npm install
script:
- npm run lint
- npm run test
- npm run lint

4 changes: 1 addition & 3 deletions src/cli/helpers/abe-get-select-template-keys.js
Expand Up @@ -84,10 +84,9 @@ var findRequestColumns = function(templatesList) {
}
})
}
resolve(whereKeys)
})
})
reject()
resolve(whereKeys)
})

return p
Expand All @@ -100,7 +99,6 @@ var getSelectTemplateKeys = function(templatesPath) {

findRequestColumns(templatesList)
.then((whereKeys) => {

resolve(whereKeys)
},
() => {
Expand Down
4 changes: 1 addition & 3 deletions src/cli/models/Manager.js
Expand Up @@ -64,9 +64,7 @@ class Manager {
resolve()
},
() => {
// No where keys found
this.updateList()
resolve()
console.log('Manager._init', e)
})
.catch((e) => {
console.log('Manager._init', e)
Expand Down
3 changes: 2 additions & 1 deletion test/request.js
Expand Up @@ -7,11 +7,12 @@ describe('Request', function() {
*
*/
it('Util.getAllAttributes()', function(done) {
this.timeout(4000)

var Util = require('../src/cli').Util
var attributes = Util.getAllAttributes("{{abe type='data' key='top_things_slider_highlight' desc='Automatic slider' source='select * from ../' editable='false'}}", {})

chai.assert.equal(attributes.sourceString, 'select * from ../', 'sourceString is ok')
done();
});

/**
Expand Down

0 comments on commit b5a909a

Please sign in to comment.