Release v2.10.3
This commit is contained in:
@@ -35,5 +35,8 @@ test('weather forecast preview only shows the fetch hint without a snapshot', ()
|
||||
const template = fs.readFileSync(path.join(__dirname, '..', 'src', 'web', 'views', 'data-sources', 'weather', 'forecast-preview.hbs'), 'utf8');
|
||||
|
||||
assert.match(template, /\{\{#if weatherPreview\.hasSnapshot\}\}[\s\S]*weather-daily-forecast[\s\S]*weather-hourly-forecast[\s\S]*\{\{\/if\}\}/);
|
||||
assert.match(template, /id="weather-daily-forecast" class="weather-daily-forecast"/);
|
||||
assert.match(template, /id="weather-hourly-forecast" class="d-none"/);
|
||||
assert.doesNotMatch(template, /Hourly forecast · next 24 hours/);
|
||||
assert.match(template, /Daily and hourly forecasts will appear here after the first successful fetch\./);
|
||||
});
|
||||
Reference in New Issue
Block a user