| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6642f54 commit bd49ada
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,8 +23,14 @@ function assertSettings(settings) { | |||
| 23 | 23 | ||
| 24 | 24 | function onStream(stream, headers, flags) { | |
| 25 | 25 | ||
| 26 | - assertSettings(stream.session.localSettings); | ||
| 27 | - assertSettings(stream.session.remoteSettings); | ||
| 26 | + const localSettings = stream.session.localSettings; | ||
| 27 | + const remoteSettings = stream.session.remoteSettings; | ||
| 28 | + assertSettings(localSettings); | ||
| 29 | + assertSettings(remoteSettings); | ||
| 30 | + | ||
| 31 | + // Test that stored settings are returned when called for second time | ||
| 32 | + assert.strictEqual(stream.session.localSettings, localSettings); | ||
| 33 | + assert.strictEqual(stream.session.remoteSettings, remoteSettings); | ||
| 28 | 34 | ||
| 29 | 35 | stream.respond({ | |
| 30 | 36 | 'content-type': 'text/html', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments