+
{
mergeConflicts.map(mergeConflict => (
{
// FIXME: Remove this guard when 1.13 is on stable.
if (parseFloat(atom.getVersion() >= 1.13)) {
- assert.isUndefined(document.querySelectorAll('.git-BranchMenuView')[0]);
+ assert.isUndefined(document.querySelectorAll('.github-BranchMenuView')[0]);
branchView.element.click();
- assert.isDefined(document.querySelectorAll('.git-BranchMenuView')[0]);
+ assert.isDefined(document.querySelectorAll('.github-BranchMenuView')[0]);
branchView.element.click();
- assert.isUndefined(document.querySelectorAll('.git-BranchMenuView')[0]);
+ assert.isUndefined(document.querySelectorAll('.github-BranchMenuView')[0]);
}
});
@@ -196,11 +196,11 @@ describe('StatusBarTileController', () => {
// FIXME: Remove this guard when 1.13 is on stable.
if (parseFloat(atom.getVersion() >= 1.13)) {
- assert.isUndefined(document.querySelectorAll('.git-PushPullMenuView')[0]);
+ assert.isUndefined(document.querySelectorAll('.github-PushPullMenuView')[0]);
pushPullView.element.click();
- assert.isDefined(document.querySelectorAll('.git-PushPullMenuView')[0]);
+ assert.isDefined(document.querySelectorAll('.github-PushPullMenuView')[0]);
pushPullView.element.click();
- assert.isUndefined(document.querySelectorAll('.git-PushPullMenuView')[0]);
+ assert.isUndefined(document.querySelectorAll('.github-PushPullMenuView')[0]);
}
});
diff --git a/test/views/commit-view.test.js b/test/views/commit-view.test.js
index c0caaf0c88..8da5aed677 100644
--- a/test/views/commit-view.test.js
+++ b/test/views/commit-view.test.js
@@ -118,7 +118,7 @@ describe('CommitView', () => {
assert.isTrue(commitButton.disabled);
});
- it('calls props.commit(message) when the commit button is clicked or git:commit is dispatched', async () => {
+ it('calls props.commit(message) when the commit button is clicked or github:commit is dispatched', async () => {
const workdirPath = await cloneRepository('three-files');
const repository = await buildRepository(workdirPath);
const commit = sinon.spy();
@@ -138,22 +138,22 @@ describe('CommitView', () => {
commandRegistry.dispatch(editor.element, 'core:undo');
assert.equal(editor.getText(), '');
- // commit via the git:commit command
+ // commit via the github:commit command
commit.reset();
await view.update({repository, stagedChangesExist: true});
editor.setText('Commit 2');
await etch.getScheduler().getNextUpdatePromise();
- commandRegistry.dispatch(editor.element, 'git:commit');
+ commandRegistry.dispatch(editor.element, 'github:commit');
await etch.getScheduler().getNextUpdatePromise();
assert.equal(commit.args[0][0], 'Commit 2');
assert.equal(editor.getText(), '');
- // disable git:commit when there are no staged changes...
+ // disable github:commit when there are no staged changes...
commit.reset();
await view.update({repository, stagedChangesExist: false});
editor.setText('Commit 4');
await etch.getScheduler().getNextUpdatePromise();
- commandRegistry.dispatch(editor.element, 'git:commit');
+ commandRegistry.dispatch(editor.element, 'github:commit');
await etch.getScheduler().getNextUpdatePromise();
assert.equal(commit.callCount, 0);
assert.equal(editor.getText(), 'Commit 4');
@@ -163,7 +163,7 @@ describe('CommitView', () => {
editor.setText('');
await etch.getScheduler().getNextUpdatePromise();
await view.update({repository, stagedChangesExist: true});
- commandRegistry.dispatch(editor.element, 'git:commit');
+ commandRegistry.dispatch(editor.element, 'github:commit');
await etch.getScheduler().getNextUpdatePromise();
assert.equal(commit.callCount, 0);
});
diff --git a/test/views/hunk-view.test.js b/test/views/hunk-view.test.js
index c8fdbdd441..e6f0c1a2b6 100644
--- a/test/views/hunk-view.test.js
+++ b/test/views/hunk-view.test.js
@@ -17,7 +17,7 @@ describe('HunkView', () => {
const view = new HunkView({hunk: hunk1, selectedLines: new Set()});
const element = view.element;
// eslint-disable-next-line prefer-const
- let [line1, line2, line3, line4] = Array.from(element.querySelectorAll('.git-HunkView-line'));
+ let [line1, line2, line3, line4] = Array.from(element.querySelectorAll('.github-HunkView-line'));
assert.equal(view.refs.header.textContent, hunk1.getHeader());
assertHunkLineElementEqual(
@@ -41,7 +41,7 @@ describe('HunkView', () => {
new HunkLine('line-1', 'deleted', 8, -1),
new HunkLine('line-2', 'added', -1, 8),
]);
- const lines = Array.from(element.querySelectorAll('.git-HunkView-line'));
+ const lines = Array.from(element.querySelectorAll('.github-HunkView-line'));
line1 = lines[0];
line2 = lines[1];
@@ -105,7 +105,7 @@ describe('HunkView', () => {
// selectLine callback not called when selectionEnabled = false
const view = new HunkView({hunk, selectedLines: new Set(), mousedownOnLine, mousemoveOnLine, selectionEnabled: false});
const element = view.element;
- const lineElements = Array.from(element.querySelectorAll('.git-HunkView-line'));
+ const lineElements = Array.from(element.querySelectorAll('.github-HunkView-line'));
const mousedownEvent = new MouseEvent('mousedown');
lineElements[0].dispatchEvent(mousedownEvent);
assert.deepEqual(mousedownOnLine.args[0], [mousedownEvent, hunk, hunk.lines[0]]);
@@ -125,8 +125,8 @@ describe('HunkView', () => {
});
function assertHunkLineElementEqual(lineElement, {oldLineNumber, newLineNumber, origin, content, isSelected}) {
- assert.equal(lineElement.querySelector('.git-HunkView-lineNumber.is-old').textContent, oldLineNumber);
- assert.equal(lineElement.querySelector('.git-HunkView-lineNumber.is-new').textContent, newLineNumber);
- assert.equal(lineElement.querySelector('.git-HunkView-lineContent').textContent, origin + content);
+ assert.equal(lineElement.querySelector('.github-HunkView-lineNumber.is-old').textContent, oldLineNumber);
+ assert.equal(lineElement.querySelector('.github-HunkView-lineNumber.is-new').textContent, newLineNumber);
+ assert.equal(lineElement.querySelector('.github-HunkView-lineContent').textContent, origin + content);
assert.equal(lineElement.classList.contains('is-selected'), isSelected);
}