From 2ea7ff4eb028b5104d270fec7ae21b1f5a5803aa Mon Sep 17 00:00:00 2001 From: Wojtek Siudzinski Date: Fri, 10 Feb 2017 14:23:26 +0000 Subject: [PATCH] Move models to separate directory --- src/Client.js | 2 +- src/{ => models}/Library.js | 0 test/Client.spec.js | 2 +- test/{ => models}/Library.spec.js | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/{ => models}/Library.js (100%) rename test/{ => models}/Library.spec.js (94%) diff --git a/src/Client.js b/src/Client.js index bbb6634..29fd7dc 100644 --- a/src/Client.js +++ b/src/Client.js @@ -1,5 +1,5 @@ import Particle from './Particle'; -import Library from './Library'; +import Library from './models/Library'; export default class Client { constructor({ auth, api = new Particle() }) { diff --git a/src/Library.js b/src/models/Library.js similarity index 100% rename from src/Library.js rename to src/models/Library.js diff --git a/test/Client.spec.js b/test/Client.spec.js index 689e248..979d89f 100644 --- a/test/Client.spec.js +++ b/test/Client.spec.js @@ -2,7 +2,7 @@ import {expect, sinon} from './test-setup'; import Client from '../src/Client'; import * as fixtures from './fixtures'; -import Library from '../src/Library'; +import Library from '../src/models/Library'; let api; const token = 'tok'; diff --git a/test/Library.spec.js b/test/models/Library.spec.js similarity index 94% rename from test/Library.spec.js rename to test/models/Library.spec.js index 628f0f5..d6931f3 100644 --- a/test/Library.spec.js +++ b/test/models/Library.spec.js @@ -1,5 +1,5 @@ import {expect} from './test-setup'; -import Library from '../src/Library'; +import Library from '../../src/models/Library'; let client = {}; describe('Library', () => {