Fix test
This commit is contained in:
parent
b9193ddb61
commit
c8bec0fba3
1 changed files with 2 additions and 5 deletions
|
@ -39,10 +39,7 @@ Check the LICENSE file for details.
|
||||||
#![doc(html_root_url = "https://docs.rs/juniper_rocket/0.2.0")]
|
#![doc(html_root_url = "https://docs.rs/juniper_rocket/0.2.0")]
|
||||||
#![feature(decl_macro, proc_macro_hygiene)]
|
#![feature(decl_macro, proc_macro_hygiene)]
|
||||||
|
|
||||||
use std::{
|
use std::io::{Cursor, Read};
|
||||||
error::Error,
|
|
||||||
io::{Cursor, Read},
|
|
||||||
};
|
|
||||||
|
|
||||||
use rocket::{
|
use rocket::{
|
||||||
data::{FromDataSimple, Outcome as FromDataOutcome},
|
data::{FromDataSimple, Outcome as FromDataOutcome},
|
||||||
|
@ -425,7 +422,7 @@ mod fromform_tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_variables_invalid_json() {
|
fn test_variables_invalid_json() {
|
||||||
check_error("query=test&variables=NOT_JSON", "JSON error", false);
|
check_error("query=test&variables=NOT_JSON", "expected value at line 1 column 1", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Reference in a new issue