From 856668b9c63fca4fda5cfc43dadfab240a882ab3 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 19 Feb 2014 12:57:49 +0100 Subject: [PATCH] chore(*): adds sofa-testing as dependency this also removes checked in mocks, they now come in via sofa-testing module --- bower.json | 3 +++ karma.conf.js | 2 +- package.json | 3 ++- test/sofa.config.mock.js | 45 ---------------------------------------- 4 files changed, 6 insertions(+), 47 deletions(-) delete mode 100644 test/sofa.config.mock.js diff --git a/bower.json b/bower.json index ddb3467..c47b2ec 100644 --- a/bower.json +++ b/bower.json @@ -7,6 +7,9 @@ ], "description": "Sofa Web SDK core components.", "main": "dist/sofa.core.js", + "devDependencies": { + "sofa-testing": "0.1.x" + }, "keywords": [ "sofa", "sofa.io", diff --git a/karma.conf.js b/karma.conf.js index 39b921e..5f4b3eb 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -11,7 +11,7 @@ module.exports = function ( karma ) { files: [ 'src/sofa.js', 'src/**/*.js', - 'test/sofa.config.mock.js', + 'node_modules/sofa-testing/mocks/sofa.config.mock.js', 'test/**/*.spec.js' ], exclude: [], diff --git a/package.json b/package.json index 4dfc611..587dc13 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "grunt-contrib-sass": "~0.7.2", "grunt-cli": "~0.1.13", "karma": "~0.10.9", - "grunt-conventional-changelog": "~1.1.0" + "grunt-conventional-changelog": "~1.1.0", + "sofa-testing": "~0.1.x" } } diff --git a/test/sofa.config.mock.js b/test/sofa.config.mock.js deleted file mode 100644 index a23f775..0000000 --- a/test/sofa.config.mock.js +++ /dev/null @@ -1,45 +0,0 @@ -cc.Config = { - loggingEnabled: true, - storeCode: '53787', - originalUrl:'http://couchcommerce.shopwaredemo.de/', - noRedirectSuffix:'/CC/noRedirect', - searchUrl: 'https://de7so.api.searchify.com/v1/indexes/production/search', - apiUrl: 'http://cc1.couchcommerce.com/apiv6/products/', - checkoutUrl:'http://couchdemoshop.couchcommerce.com/checkout/v2/', - apiHttpMethod: 'jsonp', - categoryJson: 'data/couchdemoshop/categories.json', - //apiUrl: 'data/dasgibtesnureinmal/products.json', - //apiHttpMethod: 'get', - mediaFolder:'http://cc1.couchcommerce.com/media/couchdemoshop/img/', - mediaImgExtension:'png', - mediaPlaceholder:'http://cdn.couchcommerce.com/media/platzhalter.png', - resourceUrl:'http://localhost:8888/couchcommerce/couchcommerce-frontend/app/data/pages/', - shippingCost:5, - shippingTax:19, - shippingFreeFrom: null, - currencySign:'€', - shippingText:'zzgl. 5€ Versandkosten', - showGeneralAgreement:1, - showAgeAgreement:0, - showAppExitLink:true, - linkGeneralAgreement:'saturn', - linkRecallAgreement:'neptune', - linkAgeAgreement:'age', - linkShippingCosts:'', - locale:'de-de', - countries:[{"value":"DE","label":"Deutschland"},{"value":"AT","label":"\u00d6sterreich"},{"value":"AE","label":"Arabische Emirate"},{"value":"AU","label":"Australien"},{"value":"BE","label":"Belgien"},{"value":"DK","label":"D\u00e4nemark"},{"value":"FI","label":"Finnland"},{"value":"IT","label":"Italien"},{"value":"NL","label":"Niederlande"},{"value":"CH","label":"Schweiz"},{"value":"ES","label":"Spanien"}], - aboutPages:[ - { - title:'Neptune', - id:'neptune' - }, - { - title:'Saturn', - id:'saturn' - }, - { - title:'Something', - id:'something' - } - ] -}; \ No newline at end of file