Skip to content

Commit

Permalink
tests updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Bayheck committed Aug 30, 2024
1 parent 865832f commit 5ff8503
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 12 deletions.
5 changes: 0 additions & 5 deletions test/functional/fixtures/regression/gh-8245/test.js

This file was deleted.

This file was deleted.

18 changes: 18 additions & 0 deletions test/server/compiler-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,24 @@ describe('Compiler', function () {
expect(results.inventory).to.equal('42 yoyo');
});
});

it('Should compile test with static class blocks', function () {
const sources = [
'test/server/data/test-suites/basic/testfile5.js',
];

return compile(sources)
.then(function (compiled) {
const tests = compiled.tests;
const fixtures = compiled.fixtures;

expect(tests.length).eql(1);
expect(fixtures.length).eql(1);

expect(tests[0].name).eql('Fixture6Test1');
expect(fixtures[0].name).eql('Fixture6');
});
});
});

describe('TypeScript', function () {
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions test/server/data/test-suites/basic/testfile5.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import ClassThatUsesStatic from './dep3.js';

fixture('Fixture6');

test('Fixture6Test1', async () => {
ClassThatUsesStatic.foo;
});

0 comments on commit 5ff8503

Please sign in to comment.