Skip to content

Commit

Permalink
reinstate skipped core diagram controller tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Gadsden committed Sep 10, 2021
1 parent a608b06 commit d6dd36c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions td.desktop/test/core/diagrams/diagram_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -995,9 +995,9 @@ describe('core diagram controller', function () {
expect(mockDialogs.confirm).not.toHaveBeenCalled();
});

xit('should add a threat to the element', function() {
it('should add a threat to the element', function() {

var threats = ['threat1', 'threat2', 'threat3'];
var threats = [{threatId: '1', modelType: 'NA'}, {threatId: '2', modelType: 'NA'}, {threatId: '3', modelType: 'NA'}];
var currentThreat = threats[0];
mockThreatEngine.generatePerElement = function() { return $q.when(threats); };
spyOn(mockThreatEngine, 'generatePerElement').and.callThrough();
Expand All @@ -1018,9 +1018,9 @@ describe('core diagram controller', function () {
expect($scope.vm.dirty).toBe(true);
});

xit('should add threats to the element', function() {
it('should add threats to the element', function() {

var threats = ['threat1', 'threat2', 'threat3'];
var threats = [{threatId: '1', modelType: 'NA'}, {threatId: '2', modelType: 'NA'}, {threatId: '3', modelType: 'NA'}];
var currentThreat = threats[0];
mockThreatEngine.generatePerElement = function() { return $q.when(threats); };
spyOn(mockThreatEngine, 'generatePerElement').and.callThrough();
Expand All @@ -1044,7 +1044,7 @@ describe('core diagram controller', function () {

it('should not add a threat to the element', function() {

var threats = ['threat1', 'threat2', 'threat3'];
var threats = [{threatId: '1', modelType: 'NA'}, {threatId: '2', modelType: 'NA'}, {threatId: '3', modelType: 'NA'}];
mockThreatEngine.generatePerElement = function() { return $q.when(threats); };
spyOn(mockThreatEngine, 'generatePerElement').and.callThrough();
mockDialogs.confirm = function() {};
Expand All @@ -1066,7 +1066,7 @@ describe('core diagram controller', function () {

it('should not add a threat to the element', function() {

var threats = ['threat1', 'threat2', 'threat3'];
var threats = [{threatId: '1', modelType: 'NA'}, {threatId: '2', modelType: 'NA'}, {threatId: '3', modelType: 'NA'}];
mockThreatEngine.generatePerElement = function() { return $q.when(threats); };
spyOn(mockThreatEngine, 'generatePerElement').and.callThrough();
mockDialogs.confirm = function() {};
Expand Down

0 comments on commit d6dd36c

Please sign in to comment.