Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Oct 4, 2020
1 parent c44d2fa commit bef6573
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
7 changes: 1 addition & 6 deletions src/components/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
toolbarMenuWrapperClass,
toolbarNavClass
} from '../style/Toolbar';
import { IGitExtension, Level } from '../tokens';
import { Git, IGitExtension, Level } from '../tokens';
import { ActionButton } from './ActionButton';
import { BranchMenu } from './BranchMenu';
import { TagMenu } from './TagMenu';
Expand Down Expand Up @@ -86,11 +86,6 @@ export interface IToolbarProps {
* Interface describing component state.
*/
export interface IToolbarState {
/**
* Current branch name.
*/
branch: string;

/**
* Boolean indicating whether a branch menu is shown.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/style/Toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const toolbarMenuButtonClass = style({
color: 'var(--jp-ui-font-color1)',
textAlign: 'left',

border: 'none',
border: 'none',
borderBottom: 'var(--jp-border-width) solid var(--jp-border-color2)',
borderRadius: 0,

Expand Down
4 changes: 1 addition & 3 deletions tests/test-components/Toolbar.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,7 @@ describe('Toolbar', () => {
const node = shallow(<Toolbar {...props} />);
const button = node.find(`.${toolbarMenuButtonClass}`).at(1);

expect(button.prop('title')).toEqual(
`Change the current branch: ${currentBranch}`
);
expect(button.prop('title')).toEqual('Manage branches and tags');
});
});

Expand Down

0 comments on commit bef6573

Please sign in to comment.