-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edge case: the
__esModule
field gets read
- Loading branch information
Keyan Zhang
committed
Aug 3, 2016
1 parent
5de4976
commit f69879b
Showing
16 changed files
with
130 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": [ "es2015", "stage-0" ], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"extends": "airbnb-base/legacy", | ||
"extends": "airbnb-base", | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const idObj = require('..'); | ||
|
||
export default idObj; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import idObj from '..'; | ||
|
||
module.exports = idObj; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import idObj from '..'; | ||
|
||
export default idObj; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import idObj from './idObjES6Export'; | ||
|
||
describe('idObj', () => { | ||
it('should return the key as a string', () => { | ||
expect(idObj.foo).toBe('foo'); | ||
}); | ||
it('should support dot notation', () => { | ||
expect(idObj.bar).toBe('bar'); | ||
}); | ||
it('should support bracket notation', () => { | ||
expect(idObj[1]).toBe('1'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import idObj from './idObjES6ImportExport'; | ||
|
||
describe('idObj', () => { | ||
it('should return the key as a string', () => { | ||
expect(idObj.foo).toBe('foo'); | ||
}); | ||
it('should support dot notation', () => { | ||
expect(idObj.bar).toBe('bar'); | ||
}); | ||
it('should support bracket notation', () => { | ||
expect(idObj[1]).toBe('1'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import idObj from './idObjES6Import'; | ||
|
||
describe('idObj', () => { | ||
it('should return the key as a string', () => { | ||
expect(idObj.foo).toBe('foo'); | ||
}); | ||
it('should support dot notation', () => { | ||
expect(idObj.bar).toBe('bar'); | ||
}); | ||
it('should support bracket notation', () => { | ||
expect(idObj[1]).toBe('1'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import idObj from '..'; | ||
|
||
describe('idObj', () => { | ||
it('should return the key as a string', () => { | ||
expect(idObj.foo).toBe('foo'); | ||
}); | ||
it('should support dot notation', () => { | ||
expect(idObj.bar).toBe('bar'); | ||
}); | ||
it('should support bracket notation', () => { | ||
expect(idObj[1]).toBe('1'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
/* eslint-disable space-before-function-paren, func-names */ | ||
var idObj = require('..'); | ||
const idObj = require('..'); | ||
|
||
describe('idObj', function() { | ||
it('should return the key as a string', function() { | ||
describe('idObj', () => { | ||
it('should return the key as a string', () => { | ||
expect(idObj.foo).toBe('foo'); | ||
}); | ||
it('should support dot notation', function() { | ||
it('should support dot notation', () => { | ||
expect(idObj.bar).toBe('bar'); | ||
}); | ||
it('should support bracket notation', function() { | ||
it('should support bracket notation', () => { | ||
expect(idObj[1]).toBe('1'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const idObj = require('./idObjES6Export').default; | ||
|
||
describe('idObj', () => { | ||
it('should return the key as a string', () => { | ||
expect(idObj.foo).toBe('foo'); | ||
}); | ||
it('should support dot notation', () => { | ||
expect(idObj.bar).toBe('bar'); | ||
}); | ||
it('should support bracket notation', () => { | ||
expect(idObj[1]).toBe('1'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const idObj = require('./idObjES6ImportExport').default; | ||
|
||
describe('idObj', () => { | ||
it('should return the key as a string', () => { | ||
expect(idObj.foo).toBe('foo'); | ||
}); | ||
it('should support dot notation', () => { | ||
expect(idObj.bar).toBe('bar'); | ||
}); | ||
it('should support bracket notation', () => { | ||
expect(idObj[1]).toBe('1'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const idObj = require('./idObjES6Import'); | ||
|
||
describe('idObj', () => { | ||
it('should return the key as a string', () => { | ||
expect(idObj.foo).toBe('foo'); | ||
}); | ||
it('should support dot notation', () => { | ||
expect(idObj.bar).toBe('bar'); | ||
}); | ||
it('should support bracket notation', () => { | ||
expect(idObj[1]).toBe('1'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const idObj = require('..'); | ||
|
||
describe('idObj', () => { | ||
it('should return the key as a string', () => { | ||
expect(idObj.foo).toBe('foo'); | ||
}); | ||
it('should support dot notation', () => { | ||
expect(idObj.bar).toBe('bar'); | ||
}); | ||
it('should support bracket notation', () => { | ||
expect(idObj[1]).toBe('1'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters