fix: upgrade sinon 5.0.5->5.0.7. prettier 1.14.3->1.15.2

This commit is contained in:
Jason Poon 2018-11-22 01:10:48 -08:00
parent 6e63bb3276
commit 72985b983b
3 changed files with 1243 additions and 1258 deletions

2487
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -692,7 +692,7 @@
"@types/lodash": "4.14.118",
"@types/mocha": "5.2.5",
"@types/node": "9.6.37",
"@types/sinon": "5.0.5",
"@types/sinon": "5.0.7",
"gulp": "4.0.0",
"gulp-bump": "3.1.1",
"gulp-git": "2.8.0",
@ -703,7 +703,7 @@
"minimist": "1.2.0",
"mocha": "5.2.0",
"plugin-error": "1.0.1",
"prettier": "1.14.3",
"prettier": "1.15.2",
"sinon": "7.1.1",
"tslint": "5.11.0",
"typescript": "3.1.6",

View File

@ -45,7 +45,9 @@ suite('Basic substitute', () => {
});
test('Replace with `c` flag', async () => {
const confirmStub = sinon.stub(SubstituteCommand.prototype, 'confirmReplacement').returns(true);
const confirmStub = sinon
.stub(SubstituteCommand.prototype, 'confirmReplacement')
.resolves(true);
await modeHandler.handleMultipleKeyEvents(['i', 'a', 'b', 'a', '<Esc>']);
await commandLine.Run('%s/a/d/c', modeHandler.vimState);
@ -54,7 +56,9 @@ suite('Basic substitute', () => {
});
test('Replace with `gc` flag', async () => {
const confirmStub = sinon.stub(SubstituteCommand.prototype, 'confirmReplacement').returns(true);
const confirmStub = sinon
.stub(SubstituteCommand.prototype, 'confirmReplacement')
.resolves(true);
await modeHandler.handleMultipleKeyEvents(['i', 'f', 'f', 'b', 'a', 'r', 'f', '<Esc>']);
await commandLine.Run('%s/f/foo/gc', modeHandler.vimState);
@ -238,7 +242,7 @@ suite('Basic substitute', () => {
test('Replace with `c` flag inverts global flag', async () => {
const confirmStub = sinon
.stub(SubstituteCommand.prototype, 'confirmReplacement')
.returns(true);
.resolves(true);
await modeHandler.handleMultipleKeyEvents(['i', 'f', 'f', 'b', 'a', 'r', 'f', '<Esc>']);
await commandLine.Run('%s/f/foo/c', modeHandler.vimState);