Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add chart tests and examples #383

Merged
merged 4 commits into from
Nov 4, 2018
Merged

Conversation

AlejandroYanes
Copy link
Collaborator

No description provided.

import resolveDatasets from '../resolve-datasets';

describe('resolveDatasets function', () => {
it('should return the dataset array with the right data', () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this and only leave the below test.

<Dataset title="Dataset 2" values={[66,100,30,156]} backgroundColor={'#01b6f5'} />
<Chart labels={['A', 'B', 'C', 'D']} type="line" className="rainbow-m-right_small rainbow-m-left_x-large rainbow-m-top_x-large">
<Dataset title="Dataset 1" values={[23,45,123,56]} backgroundColor={'#1de9b6'} borderColor={'#1de9b6'} />
<Dataset title="Dataset 2" values={[66,100,30,156]} backgroundColor={'#01b6f5'} borderColor={'#01b6f5'} />
Copy link
Collaborator

@reiniergs reiniergs Nov 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can by backgroundColor="#01b6f5"??

@coveralls
Copy link

coveralls commented Nov 4, 2018

Pull Request Test Coverage Report for Build 230

  • 1 of 2 (50.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.6%) to 76.112%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/Dataset/index.js 0 1 0.0%
Totals Coverage Status
Change from base Build 210: 0.6%
Covered Lines: 1197
Relevant Lines: 1502

💛 - Coveralls

@LeandroTorresSicilia LeandroTorresSicilia merged commit 64b77fd into master Nov 4, 2018
@TahimiLeonBravo TahimiLeonBravo deleted the add-chart-tests branch September 23, 2019 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants