Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Trying to fix the unit tests error appearing in qa-merge branch. #685

Merged
merged 1 commit into from
Jan 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/directives/tc-form-fonts/tc-form-fonts.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ describe('Topcoder Form Fonts Directive', function() {
bard.appModule('topcoder');
bard.inject(this, '$compile', '$rootScope');
scope = $rootScope.$new();
scope.formFonts = [];

var form = angular.element('<form><tc-form-fonts /></form>');
var form = angular.element('<form><tc-form-fonts form-fonts="formFonts" /></form>');
element = form.find('tc-form-fonts');
var formElement = $compile(form)(scope);
scope.$digest();
Expand All @@ -23,7 +24,7 @@ describe('Topcoder Form Fonts Directive', function() {

describe('is initialized with', function() {
it('empty font data', function() {
defaultFormFont = isolateScope.formFonts[0];
var defaultFormFont = isolateScope.formFonts[0];

expect(defaultFormFont.id).to.equal(0);
expect(defaultFormFont.source).to.equal('');
Expand Down
3 changes: 2 additions & 1 deletion app/directives/tc-form-stockart/tc-form-stockart.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ describe('Topcoder Form Stockart Directive', function() {
bard.appModule('topcoder');
bard.inject(this, '$compile', '$rootScope');
scope = $rootScope.$new();
scope.stockarts = [];

var form = angular.element('<form><tc-form-stockart /></form>');
var form = angular.element('<form><tc-form-stockart form-stockarts="stockarts" /></form>');
element = form.find('tc-form-stockart');
var formElement = $compile(form)(scope);
scope.$digest();
Expand Down