mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-28 15:14:06 +00:00
fix bru safe mode and add test (#6667)
* fix bru safe mode and add tests * rm: settimeout fix: isSafe mode test (#6844)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "is-safe-mode-test",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
meta {
|
||||
name: test-safe-mode-false
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: https://echo.usebruno.com
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
tests {
|
||||
test("bru.isSafeMode() returns false in developer mode", function() {
|
||||
expect(bru.isSafeMode()).to.be.false;
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
meta {
|
||||
name: test-safe-mode-true
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: https://echo.usebruno.com
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
tests {
|
||||
test("bru.isSafeMode() returns true in safe mode", function() {
|
||||
expect(bru.isSafeMode()).to.be.true;
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user