diff options
Diffstat (limited to 'spec/frontend/vue_shared/components/registry/__snapshots__/code_instruction_spec.js.snap')
-rw-r--r-- | spec/frontend/vue_shared/components/registry/__snapshots__/code_instruction_spec.js.snap | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/spec/frontend/vue_shared/components/registry/__snapshots__/code_instruction_spec.js.snap b/spec/frontend/vue_shared/components/registry/__snapshots__/code_instruction_spec.js.snap new file mode 100644 index 00000000000..16094a42668 --- /dev/null +++ b/spec/frontend/vue_shared/components/registry/__snapshots__/code_instruction_spec.js.snap @@ -0,0 +1,60 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Package code instruction multiline to match the snapshot 1`] = ` +<div> + <pre + class="gl-font-monospace" + data-testid="multiline-instruction" + > + this is some +multiline text + </pre> +</div> +`; + +exports[`Package code instruction single line to match the default snapshot 1`] = ` +<div + class="gl-mb-3" +> + <label + for="instruction-input_2" + > + foo_label + </label> + + <div + class="input-group gl-mb-3" + > + <input + class="form-control gl-font-monospace" + data-testid="instruction-input" + id="instruction-input_2" + readonly="readonly" + type="text" + /> + + <span + class="input-group-append" + data-testid="instruction-button" + > + <button + class="btn input-group-text btn-secondary btn-md btn-default" + data-clipboard-text="npm i @my-package" + title="Copy npm install command" + type="button" + > + <!----> + + <svg + class="gl-icon s16" + data-testid="copy-to-clipboard-icon" + > + <use + href="#copy-to-clipboard" + /> + </svg> + </button> + </span> + </div> +</div> +`; |