Skip to content

Commit f812ea4

Browse files
author
Kent C. Dodds
committed
it is mine!
1 parent dd2c20a commit f812ea4

File tree

6 files changed

+15
-110
lines changed

6 files changed

+15
-110
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# starwars-names
1+
# github-names
22

3-
For all your random Star Wars character needs
3+
For all your random GitHub character needs

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "starwars-names",
2+
"name": "github-names",
33
"version": "1.0.0",
44
"description": "Get random Star Wars names",
55
"main": "dist/index.js",
@@ -16,7 +16,7 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "git+https://github.com/kentcdodds/starwars-names.git"
19+
"url": "git+https://github.com/javascriptair/github-names.git"
2020
},
2121
"keywords": [
2222
"random",
@@ -25,12 +25,12 @@
2525
"files": [
2626
"dist"
2727
],
28-
"author": "Kent C. Dodds <[email protected]> (http://kentcdodds.com/)",
28+
"author": "Kent C. Dodds <[email protected]> (http://javascriptair.com/)",
2929
"license": "MIT",
3030
"bugs": {
31-
"url": "https://github.com/kentcdodds/starwars-names/issues"
31+
"url": "https://github.com/javascriptair/github-names/issues"
3232
},
33-
"homepage": "https://github.com/kentcdodds/starwars-names#readme",
33+
"homepage": "https://github.com/javascriptair/github-names#readme",
3434
"dependencies": {
3535
"unique-random-array": "1.0.0"
3636
},

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import uniqueRandomArray from 'unique-random-array'
2-
const starWarsNames = require('./starwars-names.json')
2+
const gitHubNames = require('./github-names.json')
33

44
const mainExport = {
5-
all: starWarsNames,
6-
random: uniqueRandomArray(starWarsNames),
5+
all: gitHubNames,
6+
random: uniqueRandomArray(gitHubNames),
77
}
88

99
export default mainExport

src/index.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import {expect} from 'chai'
2-
import starWarsNames from '.'
2+
import gitHubNames from '.'
33

4-
describe('starwars-names', () => {
4+
describe('github-names', () => {
55
it('should have a list of all available names', () => {
6-
expect(starWarsNames.all).to.satisfy(isArrayOfStrings)
6+
expect(gitHubNames.all).to.satisfy(isArrayOfStrings)
77
})
88

99
it('should allow me to get a random name from the list', () => {
10-
expect(starWarsNames.random()).to.satisfy(isIncludedIn(starWarsNames.all))
10+
expect(gitHubNames.random()).to.satisfy(isIncludedIn(gitHubNames.all))
1111
})
1212
})
1313

src/starwars-names.json

Lines changed: 0 additions & 95 deletions
This file was deleted.

webpack.config.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
output: {
99
path: join(__dirname, 'dist'),
1010
libraryTarget: 'umd',
11-
library: 'starWarsNames',
11+
library: 'gitHubNames',
1212
},
1313
devtool: 'source-map',
1414
module: {

0 commit comments

Comments
 (0)