Removed remaining jshint config comments

This commit is contained in:
Steve Gravrock
2022-06-02 18:16:16 -07:00
parent 18a00822c5
commit a5f79fac81
8 changed files with 12 additions and 20 deletions

View File

@@ -632,7 +632,8 @@ describe('QueueRunner', function() {
});
it('issues a more specific error if the function is `async`', function() {
eval('var fn = async function(done){};');
// eslint-disable-next-line no-unused-vars
async function fn(done) {}
const onException = jasmine.createSpy('onException'),
queueRunner = new jasmineUnderTest.QueueRunner({
queueableFns: [{ fn: fn }],

View File

@@ -106,9 +106,9 @@ describe('SpyStrategy', function() {
it('allows a fake async function to be called instead', function(done) {
const originalFn = jasmine.createSpy('original'),
fakeFn = jasmine
.createSpy('fake')
.and.callFake(eval('async () => { return 67; }')),
fakeFn = jasmine.createSpy('fake').and.callFake(async () => {
return 67;
}),
spyStrategy = new jasmineUnderTest.SpyStrategy({ fn: originalFn });
spyStrategy.callFake(fakeFn);

View File

@@ -104,7 +104,9 @@ describe('toBeInstanceOf', function() {
});
it('passes for an async function', function() {
const fn = eval("(async function fn() { return 'foo'; })");
async function fn() {
return 'foo';
}
const matcher = jasmineUnderTest.matchers.toBeInstanceOf();
const result = matcher.compare(fn, Function);