mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
Enforce single quote string usage in extension tests
Single quoted string usage is already enforced everywhere except our tests. Having this inconsistent style can confuse contributors and code generation Starting with converting over tests in the `extensions` dir
This commit is contained in:
@@ -208,7 +208,7 @@ suite.skip('vscode API - Copy Paste', function () {
|
||||
});
|
||||
|
||||
function reverseString(str: string) {
|
||||
return str.split("").reverse().join("");
|
||||
return str.split('').reverse().join('');
|
||||
}
|
||||
|
||||
function getNextDocumentText(disposables: vscode.Disposable[], doc: vscode.TextDocument): Promise<string> {
|
||||
|
||||
@@ -9,24 +9,24 @@ import * as vscode from 'vscode';
|
||||
import { assertNoRpc, closeAllEditors, createRandomFile } from '../utils';
|
||||
|
||||
const ipynbContent = JSON.stringify({
|
||||
"cells": [
|
||||
'cells': [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"source": ["## Header"],
|
||||
"metadata": {}
|
||||
'cell_type': 'markdown',
|
||||
'source': ['## Header'],
|
||||
'metadata': {}
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"source": ["print('hello 1')\n", "print('hello 2')"],
|
||||
"outputs": [
|
||||
'cell_type': 'code',
|
||||
'execution_count': 2,
|
||||
'source': [`print('hello 1')\n`, `print('hello 2')`],
|
||||
'outputs': [
|
||||
{
|
||||
"output_type": "stream",
|
||||
"name": "stdout",
|
||||
"text": ["hello 1\n", "hello 2\n"]
|
||||
'output_type': 'stream',
|
||||
'name': 'stdout',
|
||||
'text': ['hello 1\n', 'hello 2\n']
|
||||
}
|
||||
],
|
||||
"metadata": {}
|
||||
'metadata': {}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -28,7 +28,7 @@ import { assertNoRpc, poll } from '../utils';
|
||||
// Disable env var relaunch for tests to prevent terminals relaunching themselves
|
||||
await config.update('environmentChangesRelaunch', false, ConfigurationTarget.Global);
|
||||
// Disable local echo in case it causes any problems in remote tests
|
||||
await config.update('localEchoEnabled', "off", ConfigurationTarget.Global);
|
||||
await config.update('localEchoEnabled', 'off', ConfigurationTarget.Global);
|
||||
await config.update('shellIntegration.enabled', false);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user