Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Commit

Permalink
refactor(src): rename "core" directory to "src"
Browse files Browse the repository at this point in the history
  • Loading branch information
christiansmith committed Feb 7, 2016
1 parent f6b3781 commit 120abab
Show file tree
Hide file tree
Showing 21 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use strict'

module.exports = require('./core/arch/Host')
module.exports = require('./src/arch/Host')

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions test/unit/core/arch/CollectionSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const chai = require('chai')
const sinon = require('sinon')
const sinonChai = require('sinon-chai')
const _ = require('lodash')
const Plugin = require(path.join(cwd, 'core', 'arch', 'Plugin'))
const Dependency = require(path.join(cwd, 'core', 'arch', 'Dependency'))
const Plugin = require(path.join(cwd, 'src', 'arch', 'Plugin'))
const Dependency = require(path.join(cwd, 'src', 'arch', 'Dependency'))

/**
* Assertions
Expand All @@ -22,9 +22,9 @@ let expect = chai.expect
/**
* Code under test
*/
const Collection = require(path.join(cwd, 'core', 'arch', 'Collection'))
const PluginCollection = require(path.join(cwd, 'core', 'arch', 'PluginCollection'))
const DependencyCollection = require(path.join(cwd, 'core', 'arch', 'DependencyCollection'))
const Collection = require(path.join(cwd, 'src', 'arch', 'Collection'))
const PluginCollection = require(path.join(cwd, 'src', 'arch', 'PluginCollection'))
const DependencyCollection = require(path.join(cwd, 'src', 'arch', 'DependencyCollection'))

/**
* Tests
Expand Down Expand Up @@ -177,7 +177,7 @@ describe('DependencyCollection', () => {
describe('values', () => {
let collection
let depNames = ['Dep1', 'Dep2']
let injector = require(path.join(cwd, 'core', 'arch', 'injectorInstance'))
let injector = require(path.join(cwd, 'src', 'arch', 'injectorInstance'))

depNames.forEach(name => {
injector.register({
Expand All @@ -203,4 +203,4 @@ describe('DependencyCollection', () => {
injector.get.should.have.been.calledWith(depNames[1])
})
})
})
})
2 changes: 1 addition & 1 deletion test/unit/core/arch/DependencySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let expect = chai.expect
/**
* Code under test
*/
const Dependency = require(path.join(cwd, 'core', 'arch', 'Dependency'))
const Dependency = require(path.join(cwd, 'src', 'arch', 'Dependency'))

/**
* Tests
Expand Down
10 changes: 5 additions & 5 deletions test/unit/core/arch/InjectorSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let expect = chai.expect
/**
* Code under test
*/
const Injector = require(path.join(cwd, 'core', 'arch', 'Injector'))
const Injector = require(path.join(cwd, 'src', 'arch', 'Injector'))

/**
* Tests
Expand All @@ -43,9 +43,9 @@ describe('Injector', () => {
it('should invoke the dependency\'s factory function')
it('should return the dependency value')
})

})

})

describe('invoke', () => {
Expand All @@ -54,9 +54,9 @@ describe('Injector', () => {
})

describe('with a valid dependency name', () => {
it('should invoke a callback on the injector')
it('should invoke a callback on the injector')
})

})

describe('filter', () => {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/core/arch/PluginSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let expect = chai.expect
/**
* Code under test
*/
const Plugin = require(path.join(cwd, 'core', 'arch', 'Plugin'))
const Plugin = require(path.join(cwd, 'src', 'arch', 'Plugin'))

/**
* Tests
Expand All @@ -33,7 +33,7 @@ describe('Plugin', () => {
},
}

const injector = require(path.join(cwd, 'core', 'arch', 'injectorInstance'))
const injector = require(path.join(cwd, 'src', 'arch', 'injectorInstance'))

describe('constructor', () => {
let examplePlugin
Expand Down
2 changes: 1 addition & 1 deletion test/unit/core/arch/RegistrySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let expect = chai.expect
/**
* Code under test
*/
const Registry = require(path.join(cwd, 'core', 'arch', 'Registry'))
const Registry = require(path.join(cwd, 'src', 'arch', 'Registry'))

/**
* Tests
Expand Down
2 changes: 1 addition & 1 deletion test/unit/core/data/InitializerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let expect = chai.expect
/**
* Code under test
*/
const Initializer = require(path.join(process.cwd(), 'core', 'data', 'Initializer'))
const Initializer = require(path.join(process.cwd(), 'src', 'data', 'Initializer'))
const initialize = Initializer.initialize
const traverse = Initializer.traverse
const assign = Initializer.assign
Expand Down
4 changes: 2 additions & 2 deletions test/unit/core/data/ModelSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ let expect = chai.expect
/**
* Code under test
*/
const Model = require(path.join(cwd, 'core', 'data', 'Model'))
const ValidationError = require(path.join(cwd, 'core', 'data', 'validator'))
const Model = require(path.join(cwd, 'src', 'data', 'Model'))
const ValidationError = require(path.join(cwd, 'src', 'data', 'validator'))
.ValidationError

/**
Expand Down

0 comments on commit 120abab

Please sign in to comment.