Commit b642bf82 authored by Arturo Hernandez's avatar Arturo Hernandez

fix write function tests

parent f4dc789c
......@@ -156,7 +156,7 @@ $(function() {
$.ajax('https://127.0.0.1:8000/api/read-card', {
method: 'GET',
timeout: 2000
}).done(parse_data).fail(fail);
}).then(parse_data).fail(fail);
}
function read_card_data(){
spin();
......@@ -174,7 +174,7 @@ $(function() {
method:'POST',
data:{uuid:uiid},
timeout: 2000 }
).done(parse_data).fail(fail);
).then(parse_data).fail(fail);
}
function write_card(){
let uiid = check_uiid();
......@@ -188,7 +188,7 @@ $(function() {
data : DEFAULT_TEST_DATA
},
timeout: 2000 }
).done(parse_data).done(read_card_data).fail(fail);
).then(parse_data).then(read_card_data).fail(fail);
}
function erase_card(){
let uiid = check_uiid();
......@@ -202,7 +202,7 @@ $(function() {
data : DEFAULT_ERASE
},
timeout: 2000 }
).done(parse_data).done(read_card_data).fail(fail);
).then(parse_data).then(read_card_data).fail(fail);
}
function write_value(){
let uiid = check_uiid();
......@@ -217,7 +217,7 @@ $(function() {
value_adr: DEFAULT_TEST_VALUE_ADR
},
timeout: 2000 }
).done(parse_data).done(read_card_data).fail(fail);
).then(parse_data).then(read_card_data).fail(fail);
}
function increment_value(){
let uiid = check_uiid();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment