Skip to content

Commit

Permalink
deprecate(mockproject-ui): substitued with logger
Browse files Browse the repository at this point in the history
  • Loading branch information
alexblom committed Feb 15, 2017
1 parent 96685df commit 3d679df
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 31 deletions.
3 changes: 1 addition & 2 deletions node-tests/unit/commands/build-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ var setupBuild = function() {
}

var build = new BuildCmd({
project: project,
ui: mockProject.ui
project: project
});
build.analytics = mockAnalytics;

Expand Down
3 changes: 1 addition & 2 deletions node-tests/unit/commands/cordova-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ describe('Cordova Command', function() {
});

var cmd = new CordovaCmd({
project: mockProject.project,
ui: mockProject.ui
project: mockProject.project
});
cmd.analytics = mockAnalytics;

Expand Down
3 changes: 1 addition & 2 deletions node-tests/unit/commands/open-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ describe('Open Command', function() {

beforeEach(function() {
open = new OpenCmd({
project: mockProject.project,
ui: mockProject.ui
project: mockProject.project
});
open.analytics = mockAnalytics;

Expand Down
3 changes: 1 addition & 2 deletions node-tests/unit/commands/platform-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ describe('Platform Command', function() {

beforeEach(function() {
platform = new PlatformCmd({
project: mockProject.project,
ui: mockProject.ui
project: mockProject.project
});
platform.analytics = mockAnalytics;
});
Expand Down
3 changes: 1 addition & 2 deletions node-tests/unit/commands/plugin-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ describe('Plugin Command', function() {

beforeEach(function() {
plugin = new PluginCmd({
project: mockProject.project,
ui: mockProject.ui
project: mockProject.project
});
plugin.analytics = mockAnalytics;

Expand Down
3 changes: 1 addition & 2 deletions node-tests/unit/commands/serve-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ describe('Serve Command', function() {

beforeEach(function() {
serveCmd = new ServeCmd({
project: mockProject.project,
ui: mockProject.ui
project: mockProject.project
});

serveCmd.analytics = mockAnalytics;
Expand Down
2 changes: 0 additions & 2 deletions node-tests/unit/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

var td = require('testdouble');
var fs = require('fs');
var mockProject = require('../fixtures/ember-cordova-mock/project');
var expect = require('../helpers/expect');
var isAnything = td.matchers.anything;

Expand All @@ -13,7 +12,6 @@ var stubIndex = function() {
RELOAD_PORT: 1,
CORDOVA_PLATFORM: 'ios'
};
stub.ui = mockProject.ui;

stub._super = {};
stub._super.treeForPublic = function(tree) { return tree };
Expand Down
3 changes: 1 addition & 2 deletions node-tests/unit/tasks/create-cordova-shell-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ var setupTask = function(shouldMockTemplate) {
var CreateShell = require('../../../lib/tasks/create-livereload-shell');

var shellTask = new CreateShell({
project: mockProject.project,
ui: mockProject.ui
project: mockProject.project
});

if (shouldMockTemplate) {
Expand Down
4 changes: 1 addition & 3 deletions node-tests/unit/tasks/ember-build-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ describe('Ember Build Task', function() {
});

var build = new EmberBuildTask({
project: mockProject.project,
ui: mockProject.ui
project: mockProject.project
});

return build.run().then(function() {
td.verify(createKeepDouble('ember-cordova/cordova/www/.gitkeep'));
});
});
});

1 change: 0 additions & 1 deletion node-tests/unit/tasks/setup-webview-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe('Setup Webview Task', function() {

setupTask = new SetupViewTask({
project: mockProject.project,
ui: mockProject.ui,
platform: 'ios'
});
});
Expand Down
3 changes: 1 addition & 2 deletions node-tests/unit/tasks/update-gitignore-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ describe('Update gitignore Task', function() {
var createTask = function() {
var GitIgnore = require('../../../lib/tasks/update-gitignore');
return new GitIgnore({
project: mockProject.project,
ui: mockProject.ui
project: mockProject.project
});
};

Expand Down
3 changes: 1 addition & 2 deletions node-tests/unit/tasks/update-watchman-config-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ describe('Update Watchman Config Task', function() {

beforeEach(function() {
watchmanTask = new WatchmanConfig({
project: mockProject.project,
ui: mockProject.ui
project: mockProject.project
});
});

Expand Down
3 changes: 1 addition & 2 deletions node-tests/unit/tasks/validate/allow-navigation-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ describe('Validate Allow Navigation Test', function() {

function setupTask() {
return new ValidateNav({
project: mockProject.project,
ui: mockProject.ui
project: mockProject.project
});
}

Expand Down
3 changes: 1 addition & 2 deletions node-tests/unit/tasks/validate/location-type-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ describe('Validate Location Type', function() {

beforeEach(function() {
validateLoc = new ValidateLocType({
project: mockProject.project,
ui: mockProject.ui,
project: mockProject.project
});
});

Expand Down
3 changes: 1 addition & 2 deletions node-tests/unit/tasks/validate/root-url-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ describe('Validate Root Url', function() {

beforeEach(function() {
validateRoot = new ValidateRoot({
project: mockProject.project,
ui: mockProject.ui,
project: mockProject.project
});
});

Expand Down
1 change: 0 additions & 1 deletion node-tests/unit/tasks/validate/sanitize-addon-args-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ describe('Sanitize Cordova Args Test', function() {
function setupTask() {
return new SanitizeArgs({
project: mockProject.project,
ui: mockProject.ui,
api: 'plugin'
});
}
Expand Down

0 comments on commit 3d679df

Please sign in to comment.