This repository has been archived by the owner on Apr 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
792 additions
and
539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,15 @@ | ||
/* GlobalNav Styles */ | ||
.globalNav { | ||
p { | ||
color: rgb(255, 255, 255); | ||
} | ||
} | ||
@import '~styles/base/colors'; | ||
|
||
.title { | ||
padding-left: 2rem; | ||
} | ||
|
||
.separator { | ||
background-color: rgb(184, 222, 228); | ||
color: $alternateTextColor; | ||
} | ||
|
||
.github { | ||
font-size: 1.9rem; | ||
color: rgb(184, 222, 228); | ||
color: $primary3Color; | ||
|
||
&:hover { | ||
color: rgb(255, 255, 255); | ||
} | ||
} | ||
|
||
/* RoleSwitcher Styles */ | ||
.stack { | ||
position: relative; | ||
cursor: pointer; | ||
margin-right: 30px; | ||
|
||
.user { | ||
font-size: 1.2rem; | ||
color: rgb(15, 147, 166); | ||
line-height: 3.3rem; | ||
margin-left: .3rem; | ||
} | ||
|
||
&:hover { | ||
.circle { | ||
color: rgb(255, 255, 255); | ||
} | ||
} | ||
|
||
.circle { | ||
font-size: 1.9rem; | ||
color: rgb(184, 222, 228); | ||
line-height: 3.3rem; | ||
color: $alternateTextColor; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,22 @@ | ||
import test from 'ava'; | ||
import React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
// import { Icon } from 'react-fa'; | ||
import GlobalNav from './GlobalNav'; | ||
|
||
|
||
const setup = () => { | ||
// const spies = { | ||
// clicky: sinon.spy(), | ||
// }; | ||
// const props = { | ||
// customProp: 'Test', | ||
// clicky: spies.clicky, | ||
// }; | ||
const spies = { | ||
}; | ||
const props = { | ||
}; | ||
const component = shallow(<GlobalNav />); | ||
|
||
return { component }; | ||
return { component, props, spies }; | ||
}; | ||
|
||
test('(Component) Has expected elements.', t => { | ||
const { component } = setup(); | ||
|
||
// t.is(component.find('Icon'), 1, | ||
// 'contains React-FA Github Icons.'); | ||
// t.true(component.contains('<RoleSwitcher />'), | ||
// 'contains RoleSwitcher component.'); | ||
// t.true(component.contains('<Toolbar />'), | ||
// 'contains Toolbar component.'); | ||
|
||
t.is(component.find('Icon').length, 1); | ||
t.is(component.find('RoleSwitcher').length, 1); | ||
t.is(component.find('Toolbar').length, 1); | ||
t.is(component.find('Connect(RoleSwitcher)').length, 1); | ||
t.is(component.find('Link').length, 1); | ||
t.is(component.find('Link').first().props().to, '/'); | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.