@spalger/kibana
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
29 lines (25 loc) • 613 B
JavaScript
var override = require('../override');
var expect = require('expect.js');
describe('override(target, source)', function () {
it('should override the values form source to target', function () {
var target = {
test: {
enable: true,
host: ['host-01', 'host-02'],
client: {
type: 'sql'
}
}
};
var source = { test: { client: { type: 'nosql' } } };
expect(override(target, source)).to.eql({
test: {
enable: true,
host: ['host-01', 'host-02'],
client: {
type: 'nosql'
}
}
});
});
});