mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Test that App Scan can read plist
This commit is contained in:
parent
dc358ba5ac
commit
2a525d93d5
4 changed files with 377 additions and 44 deletions
|
|
@ -1,44 +0,0 @@
|
|||
|
||||
import {
|
||||
// assert,
|
||||
expect,
|
||||
test
|
||||
} from 'vitest'
|
||||
|
||||
import { createApp } from 'vue'
|
||||
|
||||
|
||||
// import {
|
||||
// isString
|
||||
// } from '~/helpers/check-types.js'
|
||||
|
||||
// const cases = [
|
||||
|
||||
// ]
|
||||
|
||||
|
||||
function buildVueInstance () {
|
||||
return createApp({
|
||||
template: '<div>Hello World</div>',
|
||||
data: function () {
|
||||
return {
|
||||
appsBeingScanned: []
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
test('Can initialize AppFilesScanner within Vite context', async () => {
|
||||
const { default: AppFilesScanner } = await import('~/helpers/app-files-scanner.js')
|
||||
|
||||
const vueInstance:any = buildVueInstance()
|
||||
|
||||
const scanner = new AppFilesScanner({
|
||||
observableFilesArray: vueInstance.appsBeingScanned,
|
||||
testResultStore: global.$config.testResultStore
|
||||
})
|
||||
|
||||
// Expect the scanner to be an instance of AppFilesScanner
|
||||
expect( scanner ).toBeInstanceOf( AppFilesScanner )
|
||||
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue