import {FilterView} from './filter.view';

describe('FilterView', () => {
	let columnTest = {
		key: 'Key'
	};
	let model = {
		filter: () => {return {by: {'Key': null}}}
	};

	describe('has', () => {
		it('should return true if model contains given column`s key', () => {
			let filterView = new FilterView(model);
			let result = filterView.has(columnTest);
			expect(result).to.equal(true);
		});
	});
});

@@ -71,45 +71,8 @@
 %3E %7B%0A
-%09let columnTest = %7B%0A%09%09key: 'Key'%0A%09%7D;%0A
 %09let
@@ -82,16 +82,16 @@
 del = %7B%0A
+
 %09%09filter
@@ -200,16 +200,20 @@
 ontains 
+the 
 given co
@@ -233,16 +233,315 @@
 () =%3E %7B%0A
+%09%09%09let columnTest = %7B%0A%09%09%09%09key: 'Key'%0A%09%09%09%7D;%0A%09%09%09let filterView = new FilterView(model);%0A%09%09%09let result = filterView.has(columnTest);%0A%09%09%09expect(result).to.equal(true);%0A%09%09%7D);%0A%0A%09%09it('should return false if model does not contains the given column%60s key', () =%3E %7B%0A%09%09%09let columnTest = %7B%0A%09%09%09%09key: null%0A%09%09%09%7D;%0A
 %09%09%09let f
@@ -638,35 +638,36 @@
 esult).to.equal(
-tru
+fals
 e);%0A%09%09%7D);%0A%09%7D);%0A%7D

Update filter.view.spec.js