From 61d75dc9e07aa5edfebe72bbd9acf92be9867b34 Mon Sep 17 00:00:00 2001 From: Seyi Adebajo Date: Thu, 19 Apr 2018 15:43:35 -0700 Subject: [PATCH] removes inapplicable classification change test for schemaless-tagging component --- .../datasets/schemaless-tagging-test.js | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/wherehows-web/tests/integration/components/datasets/schemaless-tagging-test.js b/wherehows-web/tests/integration/components/datasets/schemaless-tagging-test.js index b6d4ef1556..e498d9c8ae 100644 --- a/wherehows-web/tests/integration/components/datasets/schemaless-tagging-test.js +++ b/wherehows-web/tests/integration/components/datasets/schemaless-tagging-test.js @@ -1,4 +1,4 @@ -import { moduleForComponent, test, skip } from 'ember-qunit'; +import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import { Classification } from 'wherehows-web/constants'; @@ -30,25 +30,6 @@ test('it correctly indicates if the dataset has pii', function(assert) { assert.notOk(document.querySelector('.toggle-switch').checked, 'checkbox is unchecked when false'); }); -test('it invokes the onClassificationChange external action when change is triggered', function(assert) { - assert.expect(2); - let onClassificationChangeCallCount = 0; - - this.set('isEditable', true); - this.set('classification', Classification.LimitedDistribution); - this.set('onClassificationChange', () => { - assert.equal(++onClassificationChangeCallCount, 1, 'successfully invokes the external action'); - }); - - this.render( - hbs`{{datasets/schemaless-tagging isEditable=isEditable onClassificationChange=onClassificationChange classification=classification}}` - ); - - assert.equal(onClassificationChangeCallCount, 0, 'external action is not invoked on instantiation'); - - triggerEvent('select', 'change'); -}); - test('it invokes the onPersonalDataChange external action on when toggled', function(assert) { assert.expect(3);