diff --git a/package.json b/package.json
index 5bc46b0b3..370d0ebf0 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
"i18next-localstorage-cache": "^0.2.2",
"i18next-sprintf-postprocessor": "^0.2.2",
"i18next-xhr-backend": "^0.5.3",
- "ipfs-api": "github:ipfs/js-ipfs-api#feat/files-api",
+ "ipfs-api": "^3.0.2",
"ipfs-geoip": "^2.0.0",
"lodash": "^4.2.0",
"react": "^0.14.7",
@@ -42,7 +42,7 @@
"css-loader": "^0.23.0",
"debug": "^2.2.0",
"enzyme": "^2.1.0",
- "eslint": "2.2.0",
+ "eslint": "^2.9.0",
"eslint-config-standard": "^5.1.0",
"eslint-config-standard-react": "^2.3.0",
"eslint-plugin-promise": "^1.1.0",
@@ -51,7 +51,6 @@
"file-loader": "^0.8.5",
"hjs-webpack": "^7.0.0",
"https-browserify": "0.0.1",
- "ipfs-api": "^2.10.1",
"json-loader": "^0.5.4",
"karma": "^0.13.19",
"karma-chrome-launcher": "^0.2.2",
diff --git a/test/views/config.spec.js b/test/views/config.spec.js
index 7946672d2..0dc948a31 100644
--- a/test/views/config.spec.js
+++ b/test/views/config.spec.js
@@ -7,7 +7,7 @@ import ConfigView from '../../app/scripts/views/config'
describe('ConfigView', () => {
it('renders the given config', () => {
const config = {a: true, b: {c: 'hello'}}
- const el = shallow(
)
+ const el = shallow()
expect(el.find('textarea')).to.have.prop('value', JSON.stringify(config, null, 2))
})
diff --git a/test/views/icon.spec.js b/test/views/icon.spec.js
index 149e599fb..0cbe5e17d 100644
--- a/test/views/icon.spec.js
+++ b/test/views/icon.spec.js
@@ -6,12 +6,12 @@ import Icon from '../../app/scripts/views/icon'
describe('Icon', () => {
it('renders the given glyph', () => {
- const el = shallow()
+ const el = shallow()
expect(el).to.have.className('icon fa fa-list')
})
it('renders the given glyph with a large option', () => {
- const el = shallow()
+ const el = shallow()
expect(el).to.have.className('icon fa fa-list fa-lg')
})
})
diff --git a/test/views/nav-item.spec.js b/test/views/nav-item.spec.js
index 07a9a0e61..fae765ee4 100644
--- a/test/views/nav-item.spec.js
+++ b/test/views/nav-item.spec.js
@@ -6,7 +6,7 @@ import NavItem from '../../app/scripts/views/nav-item'
describe('NavItem', () => {
it('renders', () => {
- const el = shallow()
+ const el = shallow()
expect(el).to.have.prop('to', '/list')
expect(el.find('Icon')).to.be.present()
diff --git a/test/views/object/object-link.spec.js b/test/views/object/object-link.spec.js
index af694d32e..be97edbc2 100644
--- a/test/views/object/object-link.spec.js
+++ b/test/views/object/object-link.spec.js
@@ -8,7 +8,7 @@ import ObjectLink from '../../../app/scripts/views/object/object-link'
describe('ObjectLink', () => {
it('renders the given link', () => {
const path = parse('/ipfs/hello/world')
- const el = shallow()
+ const el = shallow()
expect(el.find('Link')).to.have.length(2)
expect(el.find('Link').at(0)).to.have.prop('to', 'objects/\\ipfs\\hello\\world\\hi')
@@ -17,7 +17,7 @@ describe('ObjectLink', () => {
it('renders links without a name', () => {
const path = parse('/ipfs/hello/world')
- const el = shallow()
+ const el = shallow()
expect(el.find('Link').at(0)).to.have.prop('to', 'objects/\\ipfs\\Qm')
})
diff --git a/test/views/object/object-links.spec.js b/test/views/object/object-links.spec.js
index ddf0938a1..c03ee9a93 100644
--- a/test/views/object/object-links.spec.js
+++ b/test/views/object/object-links.spec.js
@@ -17,7 +17,7 @@ describe('ObjectLinks', () => {
Hash: 'Qp',
Size: 3
}]
- const el = shallow()
+ const el = shallow()
expect(el.find('strong')).to.have.text('Object links')
expect(el.find('th').first()).to.have.text('Name')
diff --git a/test/views/object/parent-link.spec.js b/test/views/object/parent-link.spec.js
index 7e7e9ae88..87d477d87 100644
--- a/test/views/object/parent-link.spec.js
+++ b/test/views/object/parent-link.spec.js
@@ -8,7 +8,7 @@ import ParentLink from '../../../app/scripts/views/object/parent-link'
describe('ParentLink', () => {
it('renders with a url', () => {
const path = parse('/ipfs/hi/hello/world')
- const el = shallow()
+ const el = shallow()
expect(el.find('LinkContainer')).to.have.prop('to', '/objects/\\ipfs\\hi\\hello\\world')
})
diff --git a/test/views/object/raw-data.spec.js b/test/views/object/raw-data.spec.js
index 062bda235..25c04f51a 100644
--- a/test/views/object/raw-data.spec.js
+++ b/test/views/object/raw-data.spec.js
@@ -6,7 +6,7 @@ import RawData from '../../../app/scripts/views/object/raw-data'
describe('RawData', () => {
it('renders the given data', () => {
- const el = shallow()
+ const el = shallow()
const buf = new Buffer('Hello World', 'utf-8')
const dataString = `data:text/plain;charset=utf8;base64,${buf.toString('base64')}`
@@ -15,7 +15,7 @@ describe('RawData', () => {
it('limits the data to 10000 characters by default', () => {
const data = Array(15000).fill('a').join('')
- const el = shallow()
+ const el = shallow()
const buf = new Buffer(data.substr(0, 10000), 'utf-8')
const dataString = `data:text/plain;charset=utf8;base64,${buf.toString('base64')}`
expect(el.find('iframe')).to.have.attr('src', dataString)
@@ -23,7 +23,7 @@ describe('RawData', () => {
it('uses a custom limit', () => {
const data = 'Hello World'
- const el = shallow()
+ const el = shallow()
const buf = new Buffer('He', 'utf-8')
const dataString = `data:text/plain;charset=utf8;base64,${buf.toString('base64')}`
diff --git a/test/views/table.spec.js b/test/views/table.spec.js
index bd0aa8a0c..0aa835021 100644
--- a/test/views/table.spec.js
+++ b/test/views/table.spec.js
@@ -8,7 +8,7 @@ describe('TableView', () => {
it('renders a table with multiple rows and children', () => {
const table = [1, 2, 3]
const children = [foo]
- const el = shallow()
+ const el = shallow()
expect(el.find('tr').length).to.equal(3)
expect(el.find('span').length).to.equal(1)