feat:移除了弹窗,服务器添加sls
This commit is contained in:
commit
6a295f9a7a
4082 files changed
+1322534
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import test from 'node:test'
|
||||
|
||||
import { shouldShowMinecraftCrash } from './process.js'
|
||||
|
||||
test('only shows the crash dialog for an explicitly crashed process', () => {
|
||||
assert.equal(shouldShowMinecraftCrash(true), true)
|
||||
assert.equal(shouldShowMinecraftCrash(false), false)
|
||||
assert.equal(shouldShowMinecraftCrash(undefined), false)
|
||||
assert.equal(shouldShowMinecraftCrash(null), false)
|
||||
assert.equal(shouldShowMinecraftCrash(1), false)
|
||||
})
|
||||
Reference in new issue
Block a user