mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Fix Angular dependency mismatches in package.json
This commit is contained in:
parent
9d51576e89
commit
272e43a345
@ -3,6 +3,7 @@ Gruntfile.js
|
||||
karma.*.js
|
||||
|
||||
etc
|
||||
coverage
|
||||
grunt-tasks
|
||||
node_modules
|
||||
po
|
||||
@ -10,6 +11,6 @@ static
|
||||
templates
|
||||
tests
|
||||
client/**/*.js
|
||||
test
|
||||
|
||||
!client/components/**/*.js
|
||||
|
||||
|
||||
@ -3,5 +3,3 @@ import 'angular-mocks';
|
||||
|
||||
import '../components/index.js';
|
||||
import './panel.spec.js';
|
||||
|
||||
|
||||
|
||||
@ -20,13 +20,14 @@ module.exports = config => {
|
||||
'karma-ng-html2js-preprocessor'
|
||||
],
|
||||
preprocessors: {
|
||||
'../components/index.js': 'webpack',
|
||||
'../components/**/*.html': 'ng-html2js',
|
||||
'../components/index.js': 'webpack',
|
||||
'./index.js': 'webpack'
|
||||
},
|
||||
ngHtml2JsPreprocessor: {
|
||||
moduleName: 'at.test.templates',
|
||||
prependPrefix: '/'
|
||||
stripPrefix: path.resolve(__dirname, '..'),
|
||||
prependPrefix: 'static/partials'
|
||||
},
|
||||
webpack: {
|
||||
module: {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
describe('Components | panel', () => {
|
||||
|
||||
let $compile;
|
||||
let $rootScope;
|
||||
|
||||
@ -9,17 +10,13 @@ describe('Components | panel', () => {
|
||||
inject((_$compile_, _$rootScope_) => {
|
||||
$compile = _$compile_;
|
||||
$rootScope = _$rootScope_;
|
||||
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should load the navigation partial', function() {
|
||||
console.log($rootScope);
|
||||
var element = $compile('<at-panel></at-panel>')($rootScope);
|
||||
|
||||
$rootScope.$digest();
|
||||
|
||||
expect(element.html()).toContain('<nav class="navbar navbar-default" role="navigation">');
|
||||
});
|
||||
});
|
||||
expect(element.html()).toContain('at-Panel');
|
||||
}); });
|
||||
|
||||
@ -24,7 +24,8 @@
|
||||
"test": "karma start karma.conf.js",
|
||||
"jshint": "grunt clean:jshint jshint:source --no-color",
|
||||
"test:ci": "npm run test -- --single-run --reporter junit,dots --browsers=PhantomJS",
|
||||
"lint": "./node_modules/.bin/eslint -c .eslintrc.js ."
|
||||
"lint": "./node_modules/.bin/eslint -c .eslintrc.js .",
|
||||
"component-test": "./node_modules/.bin/karma start client/test/karma.conf.js --silent"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"browser-sync": "^2.14.0",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user