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
require 'simplecov' | |
SimpleCov.use_merging true | |
SimpleCov.start do | |
load_profile 'rails' | |
end |
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
namespace :test do | |
desc "test entire app" | |
task :full_suite => [:environment] do | |
if !Rails.env.production? | |
coverage_folder = "#{Rails.root}/coverage" | |
sh("rm -rf #{coverage_folder}") | |
Rake::Task["db:drop"].invoke | |
Rake::Task["db:create"].invoke | |
Rake::Task["db:migrate"].invoke | |
sh("rails test --verbose") |
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
name: Ruby | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master |
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
import React, {useEffect} from 'react'; | |
import { connect } from 'react-redux'; | |
import './FriendsContainer.css'; | |
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | |
import { faSortAmountDown } from '@fortawesome/free-solid-svg-icons'; | |
import DropdownMenu from '../../../../Shared/Global/DropdownMenu/DropdownMenu'; | |
import FriendCard from '../FriendCard/FriendCard'; | |
import ErrorBox from '../../../../Shared/Global/ErrorBox/ErrorBox' | |
import {listFriendsByContext} from '../../../../../Services/Friends/ListFriends' | |
import {requestAuthenticationErrorHandler} from '../../../../../Utilities/AuthUtilities/Auth' |
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
import React from 'react'; | |
import {FriendsContainer} from './FriendsContainer'; | |
import { configure, mount} from 'enzyme' | |
import Adapter from 'enzyme-adapter-react-16' | |
import {friend} from '../../../../../../mocks/friend/friendMock' | |
configure({adapter: new Adapter()}) | |
describe('<FriendsContainer/>', () => { |
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
import React from 'react'; | |
import './ModalOverlay.css'; | |
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | |
import { faChevronRight } from '@fortawesome/free-solid-svg-icons'; | |
export const ModalOverlay = props => { | |
const hiddenStyle = { | |
right: "-100%" | |
} |
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
import React from 'react'; | |
import { configure, mount} from 'enzyme' | |
import Adapter from 'enzyme-adapter-react-16' | |
import ModalOverlay from './ModalOverlay' | |
configure({adapter: new Adapter()}) | |
describe('<ModalOverlay/>', () => { | |
it('should have css style right -100% on mount', () => { |
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
export const friend = () => { | |
return { | |
id: "79", | |
type: "friend", | |
attributes: { | |
email: "DarkSilvia4463@O'Keefe.com", | |
phone: "2855537688", | |
created_at: "2020-02-17T14:27:57.386Z", | |
updated_at: "2020-02-17T14:27:57.386Z", | |
first_name: "Silvia", |
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
{ | |
"name": "react-app", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"@fortawesome/fontawesome-svg-core": "^1.2.27", | |
"@fortawesome/free-solid-svg-icons": "^5.12.1", | |
"@fortawesome/react-fontawesome": "^0.1.8", | |
"@testing-library/jest-dom": "^4.2.4", | |
"@testing-library/react": "^9.3.2", |
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
name: Node.js CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master |