How to create a Jasmine test for multiple HTML files on the Coding Exercise panel?

I created a coding exercise for Web Development. I've 4 HTML files for that. And the test file(evaluate.js) testing only for index.html. I need to run some specific tests for the other 3 HTML files.

The example structure for "Multiple Files" works for js files.

describe('foo()', function() {
it('should return true', function() {
expect(foo()).toBe(true);
});
});

describe('bar()', function() {
it('should return false', function() {
expect(bar()).toBe(false);
});
});

But, how to create tests for multiple HTML files?

Answers

  • MarinaT
    MarinaT Posts: 2,403 Udemy rank

    Hi @cansuari,

    Thank you so much for your post. Let me give this post a boost for additional attention, and hopefully, other instructors can jump in and provide support.

    Please let me know if you have any other questions.