Skip to content

Commit

Permalink
refactor: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jul 1, 2024
1 parent a7b4a8a commit 43a60c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/core/test/using-feature.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { test, expect } from 'vitest'
import { expect, test } from 'vitest'

// @ts-expect-error - readonly symbol, but might not be assigned
Symbol.dispose ??= Symbol('dispose')

const resourceful = (resourceDefault: string) => {
function resourceful(resourceDefault: string) {
let resource: string | null = resourceDefault
return {
get resource() {
Expand All @@ -19,6 +19,7 @@ test('new "using" feature', () => {
let getResource = (): any => {
throw new Error('don\'t call me')
}
// eslint-disable-next-line no-lone-blocks
{
using resource = resourceful('foo')
getResource = () => resource.resource
Expand Down

0 comments on commit 43a60c2

Please sign in to comment.