Skip to content

Commit 75ee704

Browse files
committed
Added license header
1 parent acee49b commit 75ee704

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

example.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Licensed to Elasticsearch B.V under one or more agreements.
2+
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
// See the LICENSE file in the project root for more information
4+
15
'use strict'
26

37
const { Client } = require('@elastic/elasticsearch')

index.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Licensed to Elasticsearch B.V under one or more agreements.
2+
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
// See the LICENSE file in the project root for more information
4+
15
'use strict'
26

37
const { gunzip, createGunzip } = require('zlib')
@@ -8,15 +12,6 @@ const intoStream = require('into-stream')
812
const equal = require('fast-deep-equal')
913
const kRouter = Symbol('elasticsearch-mock-router')
1014

11-
/*
12-
* Backlog:
13-
* - should we provide a default mock for known routes? eg sniff
14-
* - support array definitions
15-
* eg: add({ method: ['GET', 'POST'], path: ['/1', '/2'] })
16-
* - High level API, instead of mocking the http query,
17-
* mock the method instead. eg: mock.add({ api: 'indices.delete' })
18-
*/
19-
2015
/* istanbul ignore next */
2116
const noop = () => {}
2217
const {

test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Licensed to Elasticsearch B.V under one or more agreements.
2+
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
// See the LICENSE file in the project root for more information
4+
15
'use strict'
26

37
const test = require('ava')

0 commit comments

Comments
 (0)