Skip to content

Commit 80da905

Browse files
authored
Fix domain name (#988)
1 parent 10fb0cb commit 80da905

File tree

7 files changed

+13
-12
lines changed

7 files changed

+13
-12
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async function activate(
7676
// Get a reference to the default file browser extension
7777
const filebrowser = factory.defaultBrowser;
7878
translator = translator || nullTranslator;
79-
const trans = translator.load('jupyterlab-git');
79+
const trans = translator.load('jupyterlab_git');
8080

8181
// Attempt to load application settings
8282
try {

tests/commands.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('git-commands', () => {
3737
commands,
3838
shell: null as any
3939
};
40-
const trans = nullTranslator.load('jupyterlab-git');
40+
const trans = nullTranslator.load('jupyterlab_git');
4141
model = new GitExtension(app as any);
4242
addCommands(app as JupyterFrontEnd, model, null, null, trans);
4343
});

tests/test-components/BranchMenu.spec.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ import * as git from '../../src/git';
88
import { Logger } from '../../src/logger';
99
import { GitExtension } from '../../src/model';
1010
import { listItemClass, nameClass } from '../../src/style/BranchMenu';
11-
import { mockedRequestAPI, defaultMockedResponses, DEFAULT_REPOSITORY_PATH } from '../utils';
11+
import {
12+
mockedRequestAPI,
13+
defaultMockedResponses,
14+
DEFAULT_REPOSITORY_PATH
15+
} from '../utils';
1216
import ClearIcon from '@material-ui/icons/Clear';
1317
import { nullTranslator } from '@jupyterlab/translation';
1418

@@ -60,7 +64,7 @@ async function createModel() {
6064

6165
describe('BranchMenu', () => {
6266
let model: GitExtension;
63-
const trans = nullTranslator.load('jupyterlab-git');
67+
const trans = nullTranslator.load('jupyterlab_git');
6468

6569
beforeEach(async () => {
6670
jest.restoreAllMocks();
@@ -143,10 +147,7 @@ describe('BranchMenu', () => {
143147
component.setState({
144148
filter: 'foo'
145149
});
146-
const html = component
147-
.find(ClearIcon)
148-
.first()
149-
.html();
150+
const html = component.find(ClearIcon).first().html();
150151
expect(html.includes('<title>')).toEqual(true);
151152
});
152153

tests/test-components/CommitBox.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('CommitBox', () => {
1414
selector: '.jp-git-CommitBox'
1515
});
1616

17-
const trans = nullTranslator.load('jupyterlab-git');
17+
const trans = nullTranslator.load('jupyterlab_git');
1818

1919
const defaultProps: ICommitBoxProps = {
2020
onCommit: async () => {},

tests/test-components/FileItem.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { shallow } from 'enzyme';
55
import { nullTranslator } from '@jupyterlab/translation';
66

77
describe('FileItem', () => {
8-
const trans = nullTranslator.load('jupyterlab-git');
8+
const trans = nullTranslator.load('jupyterlab_git');
99

1010
const props: IFileItemProps = {
1111
contextMenu: () => {},

tests/test-components/GitPanel.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function MockSettings(commitAndPush = true) {
5151
}
5252

5353
describe('GitPanel', () => {
54-
const trans = nullTranslator.load('jupyterlab-git');
54+
const trans = nullTranslator.load('jupyterlab_git');
5555

5656
const props: IGitPanelProps = {
5757
model: null,

tests/test-components/Toolbar.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async function createModel() {
2525

2626
describe('Toolbar', () => {
2727
let model: GitExtension;
28-
const trans = nullTranslator.load('jupyterlab-git');
28+
const trans = nullTranslator.load('jupyterlab_git');
2929

3030
function createProps(props?: Partial<IToolbarProps>): IToolbarProps {
3131
return {

0 commit comments

Comments
 (0)