2013-01-24 04:52:04 +00:00
|
|
|
typeof_eq_undefined: {
|
|
|
|
|
options = {
|
2013-05-05 12:38:32 +00:00
|
|
|
comparisons: true
|
2013-01-24 04:52:04 +00:00
|
|
|
};
|
|
|
|
|
input: { a = typeof b.c != "undefined" }
|
2013-05-08 13:22:39 +00:00
|
|
|
expect: { a = "undefined" != typeof b.c }
|
2013-01-24 04:52:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
typeof_eq_undefined_unsafe: {
|
|
|
|
|
options = {
|
|
|
|
|
comparisons: true,
|
|
|
|
|
unsafe: true
|
|
|
|
|
};
|
|
|
|
|
input: { a = typeof b.c != "undefined" }
|
2013-05-08 13:22:39 +00:00
|
|
|
expect: { a = void 0 !== b.c }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
typeof_eq_undefined_unsafe2: {
|
|
|
|
|
options = {
|
|
|
|
|
comparisons: true,
|
|
|
|
|
unsafe: true
|
|
|
|
|
};
|
|
|
|
|
input: { a = "undefined" != typeof b.c }
|
|
|
|
|
expect: { a = void 0 !== b.c }
|
2013-01-24 04:52:04 +00:00
|
|
|
}
|