Skip to content

Commit

Permalink
Merge pull request #4 from South-Paw/dev
Browse files Browse the repository at this point in the history
Add package keywords and update scripts
  • Loading branch information
South-Paw committed Jan 18, 2019
2 parents 4a7429d + 0c3685b commit 294cb54
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
18 changes: 18 additions & 0 deletions maps/convert-svgs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ const { asyncForEach, capitalize, stringify } = require('./convert-svgs');

describe(name, () => {
describe('convert-svgs', () => {
// TODO
describe('asyncForEach', () => {
xtest('that given a parameter and an async function, it will loop through them as a forEach would.', () => {});
});

describe('capitalize', () => {
test('that given a word, the word is capitalized', () => {
const given = 'apples';
Expand Down Expand Up @@ -45,5 +50,18 @@ describe(name, () => {
expect(stringify(object)).toBe(expected);
});
});

// TODO
describe('ConvertSVGs', () => {
test('constructor', () => {});

test('cleanAndCreateFolder', () => {});

test('cleanAndCreateFile', () => {});

describe('run', () => {
test('todo', () => {});
});
});
});
});
15 changes: 13 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
{
"name": "@south-paw/react-vector-maps",
"version": "1.0.0",
"version": "1.0.1",
"description": "A React component for interactive vector maps of the world and 100+ countries.",
"keywords": [],
"keywords": [
"react",
"component",
"map",
"maps",
"svg",
"interactive",
"world",
"country",
"countries"
],
"homepage": "https://github.com/South-Paw/react-vector-maps",
"bugs": "https://github.com/South-Paw/react-vector-maps/issues",
"license": "MIT",
Expand All @@ -25,6 +35,7 @@
"build": "rimraf dist && babel src -d dist --ignore \"**/*.test.js\",\"./src/examples\",\"./maps/**\"",
"convert": "node maps/run.js",
"lint": "eslint .",
"prepublishOnly": "yarn lint && yarn test && yarn build",
"storybook": "start-storybook -p 9000 -c .storybook",
"storybook:build": "build-storybook -c .storybook -o public/storybook",
"test": "jest"
Expand Down
8 changes: 8 additions & 0 deletions src/VectorMap.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const { name } = require('../package.json');
import VectorMap, { world } from './index';

describe(name, () => {
it('todo', () => {
console.log('todo');
});
});

0 comments on commit 294cb54

Please sign in to comment.