Commit 3c6a06a3 by Torkel Ödegaard

feat(cloudwatch): moved specs into plugins dir

parent 057b533a
define([
'./helpers',
'app/plugins/datasource/cloudwatch/datasource',
'aws-sdk',
], function(helpers) {
'use strict';
describe('CloudWatchDatasource', function() {
///<amd-dependency path="app/plugins/datasource/cloudwatch/datasource" />
///<amd-dependency path="test/specs/helpers" name="helpers" />
import {describe, beforeEach, it, sinon, expect, angularMocks} from 'test/lib/common';
declare var helpers: any;
describe('CloudWatchDatasource', function() {
var ctx = new helpers.ServiceTestContext();
beforeEach(module('grafana.services'));
beforeEach(module('grafana.controllers'));
beforeEach(angularMocks.module('grafana.services'));
beforeEach(angularMocks.module('grafana.controllers'));
beforeEach(ctx.providePhase(['templateSrv']));
beforeEach(ctx.createService('CloudWatchDatasource'));
beforeEach(function() {
......@@ -166,5 +166,4 @@ define([
ctx.$rootScope.$apply();
});
});
});
});
module.exports = function(config) {
'use strict';
return {
css: {
files: [ '<%= srcDir %>/less/**/*.less' ],
......@@ -10,19 +12,27 @@ module.exports = function(config) {
copy_to_gen: {
files: ['<%= srcDir %>/**/*', '!<%= srcDir %>/**/*.less'],
tasks: ['copy:public_to_gen'],
tasks: [
'jshint',
'jscs',
'tslint',
'clean:gen',
'copy:public_to_gen',
'typescript:build',
'karma:test'
],
options: {
spawn: false
}
},
typescript: {
files: ['<%= srcDir %>/app/**/*.ts', '<%= srcDir %>/test/**/*.ts'],
tasks: ['tslint', 'typescript:build'],
options: {
spawn: false
}
}
// typescript: {
// files: ['<%= srcDir %>/app#<{(||)}>#*.ts', '<%= srcDir %>/test#<{(||)}>#*.ts'],
// tasks: ['tslint', 'typescript:build'],
// options: {
// spawn: false
// }
// }
};
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment