Skip to content

Commit 5572a02

Browse files
committed
refactor: use async/await, const and arrow function
1 parent 06385c2 commit 5572a02

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/find/test-suite-1/test.partial.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
describe('test.partial.js', function () {
4-
beforeEach(function () {
3+
describe('test.partial.js', () => {
4+
beforeEach(async () => {
55
const write = context.db.bulkDocs({ docs: [
66
{ _id: 'a', type: 'x', hello: 'world' },
77
{ _id: 'b', type: 'y', hello: 'world' }
@@ -17,7 +17,7 @@ describe('test.partial.js', function () {
1717
return Promise.all([write, index]);
1818
});
1919

20-
it('should write the partial filter to the ddoc', async function () {
20+
it('should write the partial filter to the ddoc', async () => {
2121
const result = await context.db.get('_design/test-partial');
2222
const map = result.views['type-x'].map;
2323
map.should.have.property('partial_filter_selector');
@@ -28,7 +28,7 @@ describe('test.partial.js', function () {
2828
});
2929
});
3030

31-
it('should apply the partial filter', async function () {
31+
it('should apply the partial filter', async () => {
3232
const result = await context.db.find({
3333
selector: { hello: 'world' },
3434
use_index: ['_design/test-partial', 'type-x']

0 commit comments

Comments
 (0)