Skip to content

Commit

Permalink
Modified export default to module.exports to support ES5.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstebo committed Apr 19, 2017
1 parent 3e85975 commit fe8005e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/faker.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import * as StarWars from './faker/star-wars';
import * as Superhero from './faker/superhero';
import * as Time from './faker/time';

export default {
module.exports = {
Address,
App,
Boolean,
Expand Down
2 changes: 1 addition & 1 deletion test/faker.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
const expect = require('chai').expect;
const Faker = require('../src/faker').default;
const Faker = require('../src/faker');

describe('#Faker', () => {
it('should be an object', () => {
Expand Down

0 comments on commit fe8005e

Please sign in to comment.