Skip to content

Commit 35110a5

Browse files
committed
Update tests
1 parent 70569f7 commit 35110a5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

components/templates/src/global_fns/images.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,12 @@ mod tests {
189189

190190
assert_eq!(
191191
data["static_path"],
192-
to_value(&format!("{}", static_path.join("gutenberg.e99218b5a3185c99.jpg").display()))
192+
to_value(&format!("{}", static_path.join("gutenberg.9786ef7a62f75bc4.jpg").display()))
193193
.unwrap()
194194
);
195195
assert_eq!(
196196
data["url"],
197-
to_value("http://a-website.com/processed_images/gutenberg.e99218b5a3185c99.jpg")
197+
to_value("http://a-website.com/processed_images/gutenberg.9786ef7a62f75bc4.jpg")
198198
.unwrap()
199199
);
200200

@@ -203,12 +203,12 @@ mod tests {
203203
let data = static_fn.call(&args).unwrap().as_object().unwrap().clone();
204204
assert_eq!(
205205
data["static_path"],
206-
to_value(&format!("{}", static_path.join("gutenberg.155d032b1aae0133.jpg").display()))
206+
to_value(&format!("{}", static_path.join("gutenberg.9786ef7a62f75bc4.jpg").display()))
207207
.unwrap()
208208
);
209209
assert_eq!(
210210
data["url"],
211-
to_value("http://a-website.com/processed_images/gutenberg.155d032b1aae0133.jpg")
211+
to_value("http://a-website.com/processed_images/gutenberg.9786ef7a62f75bc4.jpg")
212212
.unwrap()
213213
);
214214

@@ -227,25 +227,25 @@ mod tests {
227227
let data = static_fn.call(&args).unwrap().as_object().unwrap().clone();
228228
assert_eq!(
229229
data["static_path"],
230-
to_value(&format!("{}", static_path.join("asset.160461e0d0be19e6.jpg").display()))
230+
to_value(&format!("{}", static_path.join("asset.9786ef7a62f75bc4.jpg").display()))
231231
.unwrap()
232232
);
233233
assert_eq!(
234234
data["url"],
235-
to_value("http://a-website.com/processed_images/asset.160461e0d0be19e6.jpg").unwrap()
235+
to_value("http://a-website.com/processed_images/asset.9786ef7a62f75bc4.jpg").unwrap()
236236
);
237237

238238
// 6. Looking up a file in the theme
239239
args.insert("path".to_string(), to_value("in-theme.jpg").unwrap());
240240
let data = static_fn.call(&args).unwrap().as_object().unwrap().clone();
241241
assert_eq!(
242242
data["static_path"],
243-
to_value(&format!("{}", static_path.join("in-theme.d8f4f6eef30de1b2.jpg").display()))
243+
to_value(&format!("{}", static_path.join("in-theme.9786ef7a62f75bc4.jpg").display()))
244244
.unwrap()
245245
);
246246
assert_eq!(
247247
data["url"],
248-
to_value("http://a-website.com/processed_images/in-theme.d8f4f6eef30de1b2.jpg")
248+
to_value("http://a-website.com/processed_images/in-theme.9786ef7a62f75bc4.jpg")
249249
.unwrap()
250250
);
251251
}

0 commit comments

Comments
 (0)