Thursday, June 21, 2018

Karma Jasmine: Same Function Name, Two different source files

Leave a Comment

I have 2 source files to test:

  • a.js
  • b.js

They both have a function validate();

In writing bSpec.js and testing b.js's validate function, I find that a.js's validate is the one being called. Do I have a way to specify which source file is the one to be tested?

both a.js and b.js are included in the karma-config via the files block using 'js_files/**/*.js'

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment