-
Notifications
You must be signed in to change notification settings - Fork 20
/
fixing_tests.txt
98 lines (73 loc) · 1.51 KB
/
fixing_tests.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
remove:
const \{(.*)\} = require\('mocha'\)
replace:
const (.*) require\(path.join\(__dirname, '/../lib'\)\)(.*)
const {r} = require(path.join(__dirname, '/../lib'))
replace:
(.*)rethinkdbdash\(config\)
await r.connectPool(config)
remove:
var Promise = require('bluebird');
Promise.coroutine.addYieldHandler(function(yieldedValue) {
if (Array.isArray(yieldedValue)) return Promise.all(yieldedValue);
});
replace:
require(path.join(__dirname, '/../lib'))({
await r.connectPool({
replace:
it('If `servers` is specified, it cannot be empty', function () {
it('If `servers` is specified, it cannot be empty', async () => {
replace:
let r,
let
replace:
0 argument,
0 arguments,
replace:
r.row
row => row
replace:
).error(
).catch(
replace
await r.db(dbName).table(tableName).insert({ id: 0 })
await r.db(dbName).table(tableName).insert({ id: 0 }).run()
replace
run({ cursor: true })
getCursor()
replace
run\(\{ cursor: true,(.*)\}\)
getCursor({ $1 })
replace
cursor.result.toArray()
cursor.toArray()
replace
run\((.*)cursor: true,(.*)
getCursor($1$2
replace
.on('end', resolve)
.on('data', () => null).on('end', resolve)
remove
let r$
remove
nodeify.js
remove
.asyncIterator()
remove
it('Import with cursor as default', async () => {
replace
connection.connection.end()
connection.socket.close()
replace
feed.next();
await feed.next();
reimplement
coverage.js
remove
dequeue.js
replace
\{(.*)(row => )row(.*)\}
row => ({$1row$3})
fix
'`merge` should take an anonymous function'
`indexCreate` should work with options