remove whitespace from source

This commit is contained in:
Bram van Neerven 2022-08-28 01:10:04 +02:00
parent 6d3de2c74b
commit e5cf24ae54

View File

@ -66,8 +66,8 @@ impl<'a> GraphiQLSource<'a> {
};
r#"
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html>
<head>
<style>
body {
@ -112,8 +112,8 @@ impl<'a> GraphiQLSource<'a> {
);
</script>
</body>
</html>
"#
</html>
"#
.replace("%GRAPHIQL_URL%", &graphiql_url)
.replace("%GRAPHIQL_SUBSCRIPTION_URL%", &graphiql_subscription_url)
.replace("%GRAPHIQL_HEADERS%", &graphiql_headers)
@ -133,8 +133,8 @@ mod tests {
assert_eq!(
graphiql_source,
r#"
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html>
<head>
<style>
body {
@ -179,8 +179,8 @@ mod tests {
);
</script>
</body>
</html>
"#
</html>
"#
)
}
@ -194,8 +194,8 @@ mod tests {
assert_eq!(
graphiql_source,
r#"
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html>
<head>
<style>
body {
@ -240,8 +240,8 @@ mod tests {
);
</script>
</body>
</html>
"#
</html>
"#
)
}
@ -256,8 +256,8 @@ mod tests {
assert_eq!(
graphiql_source,
r#"
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html>
<head>
<style>
body {
@ -302,8 +302,8 @@ mod tests {
);
</script>
</body>
</html>
"#
</html>
"#
)
}
}