修复:部署无法到达已打开的页面(新增构建版本标记 + 陈旧页面自动重载) (#39)
This commit is contained in:
1 parent
9d404199df
commit
e90e7a30fc
8 files changed
+450
-10
No files matched your search
@@ -272,7 +272,8 @@ describe('connection banner class (replaces CSS :has())', () => {
|
||||
test('bannerVisible mirrors the banner', () => {
|
||||
assert.equal(bannerVisible({ status: 'online' }, true, false), false);
|
||||
assert.equal(bannerVisible({ status: 'online' }, true, true), true, 'syncing after a resume');
|
||||
assert.equal(bannerVisible({ status: 'reconnecting', everOnline: true }, true, false), true);
|
||||
assert.equal(bannerVisible({ status: 'online' }, true, false, true), true, 'a stale build during a match');
|
||||
assert.equal(bannerVisible({ status: 'reconnecting', everOnline: true }, true, false, true), true);
|
||||
assert.equal(bannerVisible({ status: 'connecting', everOnline: false }, true, false), false, 'first connect is silent');
|
||||
assert.equal(bannerVisible({ status: 'closed' }, false, false), false, 'not before the title');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user