Skip to content

Commit

Permalink
Removed unused base techs
Browse files Browse the repository at this point in the history
  • Loading branch information
SwinX committed Sep 16, 2015
1 parent eda6287 commit d146b1b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 159 deletions.
49 changes: 0 additions & 49 deletions lib/tech/chunks.js

This file was deleted.

102 changes: 0 additions & 102 deletions lib/tech/file-assemble-tech.js

This file was deleted.

16 changes: 8 additions & 8 deletions test/lib/config/node-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ var path = require('path');
var NodeConfig = require('../../../lib/config/node-config');
var ModeConfig = require('../../../lib/config/mode-config');
var BaseTech = require('../../../lib/tech/base-tech');
var FileAssembleTech = require('../../../lib/tech/file-assemble-tech');
var ChunksTech = require('../../../lib/tech/chunks');

describe('config/node-config', function () {
describe('constructor', function () {
Expand Down Expand Up @@ -511,6 +509,8 @@ describe('config/node-config', function () {

describe('addTechs', function () {
var nodeConfig;
var SecondTech = function (params) { this.second = params; }; //need because instantiated objects must differ
var ThirdTech = function (params) { this.third = params; };

beforeEach(function () {
nodeConfig = new NodeConfig();
Expand All @@ -520,7 +520,7 @@ describe('config/node-config', function () {
var firstTechParams = { foo: 'bar' };
var firstTechClass = BaseTech;
var secondTechParams = { fizz: 'baz' };
var secondTechClass = FileAssembleTech;
var secondTechClass = SecondTech;
var firstTech = [firstTechClass, firstTechParams];
var secondTech = [secondTechClass, secondTechParams];
var techs = [firstTech, secondTech];
Expand All @@ -536,7 +536,7 @@ describe('config/node-config', function () {
var firstTechParams = { foo: 'bar' };
var firstTechClass = BaseTech;
var secondTechParams = { fizz: 'baz' };
var secondTechClass = FileAssembleTech;
var secondTechClass = SecondTech;
var firstTech = [firstTechClass, firstTechParams];
var secondTech = [secondTechClass, secondTechParams];
var techs = [firstTech, secondTech];
Expand All @@ -550,7 +550,7 @@ describe('config/node-config', function () {

it('should add multiple techs passed as tech classes', function () {
var firstTechClass = BaseTech;
var secondTechClass = FileAssembleTech; //need to make sure different techs are being added
var secondTechClass = SecondTech;
var techs = [firstTechClass, secondTechClass];

nodeConfig.addTechs(techs);
Expand All @@ -561,7 +561,7 @@ describe('config/node-config', function () {

it('should add multiple instantiated techs', function () {
var firstTech = new BaseTech();
var secondTech = new FileAssembleTech();
var secondTech = new SecondTech();
var techs = [firstTech, secondTech];

nodeConfig.addTechs(techs);
Expand All @@ -572,9 +572,9 @@ describe('config/node-config', function () {

it('should add multiple techs declared in all supported ways', function () {
var firstTech = new BaseTech();
var secondTechClass = FileAssembleTech;
var secondTechClass = SecondTech;
var thirdTechParams = { foo: 'bar' };
var thirdTechClass = ChunksTech;
var thirdTechClass = ThirdTech;
var thirdTech = [thirdTechClass, thirdTechParams];
var techs = [firstTech, secondTechClass, thirdTech];

Expand Down

0 comments on commit d146b1b

Please sign in to comment.