bd-stampy
Advanced tools
Comparing version 0.5.5 to 0.6.0
@@ -7,3 +7,9 @@ // var base_path = '../../'; | ||
describe('TestTest', function(){ | ||
it('passes the test', function() { | ||
expect(true).toBe(false); | ||
}); | ||
}); | ||
// describe('UrlStore.getQueryParams', function() { | ||
@@ -10,0 +16,0 @@ // var BrowserHistory = require(base_path + 'utils/BrowserHistory'); |
@@ -158,9 +158,22 @@ import React, { Component, PropTypes } from 'react'; | ||
renderPagination(length) { | ||
if(this.props.pagination) { | ||
const { | ||
pagination, | ||
paginationPage, | ||
paginationLength, | ||
onPaginate, | ||
onPagingate | ||
} = this.props; | ||
if(pagination) { | ||
const handleClick = (a,b) => { | ||
onPaginate && onPaginate(a,b); | ||
onPagingate && onPagingate(a,b); | ||
}; | ||
return ( | ||
<Pagination | ||
length={length} | ||
page={this.props.paginationPage} | ||
amount={this.props.paginationLength} | ||
onClick={this.props.onPagingate} | ||
page={paginationPage} | ||
amount={paginationLength} | ||
onClick={handleClick} | ||
/> | ||
@@ -199,2 +212,4 @@ ); | ||
paginationPage: PropTypes.number, | ||
onPagingate: PropTypes.func, // legacy | ||
onPaginate: PropTypes.func, // corrected spelling | ||
empty: PropTypes.element, | ||
@@ -205,3 +220,1 @@ modifier: PropTypes.string | ||
export default DataTable; | ||
@@ -8,6 +8,6 @@ var path = require('path'); | ||
files: [ | ||
'./testsEntry.js' | ||
'__tests__/**/*.js' | ||
], | ||
preprocessors: { | ||
'./testsEntry.js': 'webpack' | ||
'__tests__/**/*.js': 'webpack' | ||
}, | ||
@@ -14,0 +14,0 @@ reporters: ['mocha', 'coverage'], |
{ | ||
"name": "bd-stampy", | ||
"version": "0.5.5", | ||
"version": "0.6.0", | ||
"description": "React UI Component Library", | ||
"main": "stampy.js", | ||
"scripts": { | ||
"test": "karma start karma.conf.js", | ||
"coverage": "istanbul cover __tests__/components/Button-test.js" | ||
"test": "echo 'no tests provided'" | ||
}, | ||
@@ -10,0 +9,0 @@ "repository": { |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
144072
3898
2