@@ -4,15 +4,15 @@ import {
44 computed ,
55 effect ,
66 input ,
7- OnInit ,
7+ inputBinding ,
88 signal ,
99 untracked ,
10- inputBinding ,
1110} from '@angular/core'
1211import { TestBed } from '@angular/core/testing'
1312import { By } from '@angular/platform-browser'
1413import { createStore } from '@tanstack/store'
1514import { injectStore } from '../src/index'
15+ import type { OnInit } from '@angular/core'
1616
1717function createStableSignal < T > ( fn : ( ) => T ) : ( ) => T {
1818 return computed ( ( ) => untracked ( fn ) )
@@ -113,7 +113,10 @@ describe('injectStore', () => {
113113
114114 const storeVal = TestBed . runInInjectionContext ( ( ) => {
115115 const store = createStableSignal ( ( ) => createStore ( { value : count ( ) } ) )
116- const storeVal = injectStore ( ( ) => store ( ) , ( state ) => state . value )
116+ const storeVal = injectStore (
117+ ( ) => store ( ) ,
118+ ( state ) => state . value ,
119+ )
117120
118121 effect ( ( ) => {
119122 store ( ) . setState ( ( ) => ( { value : count ( ) } ) )
@@ -140,7 +143,10 @@ describe('injectStore', () => {
140143 store = createStableSignal ( ( ) =>
141144 createStore ( { doubled : this . value ( ) * 2 } ) ,
142145 )
143- storeVal = injectStore ( ( ) => this . store ( ) , ( state ) => state . doubled )
146+ storeVal = injectStore (
147+ ( ) => this . store ( ) ,
148+ ( state ) => state . doubled ,
149+ )
144150
145151 constructor ( ) {
146152 effect ( ( ) => {
@@ -215,7 +221,10 @@ describe('injectStore', () => {
215221 store = createStableSignal ( ( ) =>
216222 createStore ( { doubled : this . value ( ) * 2 } ) ,
217223 )
218- storeVal = injectStore ( ( ) => this . store ( ) , ( state ) => state . doubled )
224+ storeVal = injectStore (
225+ ( ) => this . store ( ) ,
226+ ( state ) => state . doubled ,
227+ )
219228
220229 constructor ( ) {
221230 effect ( ( ) => {
0 commit comments