This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cy.visit('/404') | |
| //=> Test fails | |
| cy.visit('/404', {failOnStatusCode: false}) | |
| //=> Test passes but does not test the HTTP code was 404 | |
| cy.request({url: '/404', failOnStatusCode: false}).its('status').should('equal', 404) | |
| cy.visit('/404', {failOnStatusCode: false}) | |
| //=> Test passes, tests that the HTTP code was 404, and tests page was visited |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -u | |
| set -x # Print commands and their arguments as they are executed. | |
| # find path to liblzma used by sshd | |
| path="$(ldd $(which sshd) | grep liblzma | grep -o '/[^ ]*')" || echo "liblzma not found for sshd" | |
| # If the path is empty, the script will now continue instead of exiting due to set -e being removed. | |
| if [ "$path" == "" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.config/starship.toml | |
| add_newline = true | |
| continuation_prompt = "[▸▹ ](dimmed white)" | |
| format = """[┌──\\(](bold green)$username[㉿](bold green)$hostname[\\)-\\[](bold green)$time[\\]-\\[](bold green)$directory[\\]](bold green)\ | |
| (\n[│](green)( $python) |( $git_branch$git_commit$git_state)) | |
| [└](bold green)$cmd_duration[─](bold green)[\\$ ](bold blue)""" | |
| right_format = '''$battery''' |
OlderNewer