From 4cd95a5065504517358a182d5075bdb673d50058 Mon Sep 17 00:00:00 2001 From: qvalentin Date: Fri, 3 May 2024 21:36:15 +0200 Subject: [PATCH] clean tests --- .../yamlls/diagnostics_integration_test.go | 1 + internal/lsp/yaml_ast_test.go | 36 ------------------- 2 files changed, 1 insertion(+), 36 deletions(-) diff --git a/internal/adapter/yamlls/diagnostics_integration_test.go b/internal/adapter/yamlls/diagnostics_integration_test.go index 15446b45..345053e9 100644 --- a/internal/adapter/yamlls/diagnostics_integration_test.go +++ b/internal/adapter/yamlls/diagnostics_integration_test.go @@ -166,4 +166,5 @@ func TestYamllsDiagnosticsIntegrationWithSchema(t *testing.T) { } assert.Contains(t, diagnostic, expected) + assert.Len(t, diagnostic, 1) } diff --git a/internal/lsp/yaml_ast_test.go b/internal/lsp/yaml_ast_test.go index 644c6b27..90d20f87 100644 --- a/internal/lsp/yaml_ast_test.go +++ b/internal/lsp/yaml_ast_test.go @@ -107,42 +107,6 @@ yaml: test trimmedText: ` -yaml: test - - T1 -`, - }, - { - documentText: ` -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "example.fullname" . }} - labels: - {{- include "example.labels" . | nindent 4 }} -spec: - {{- if not .Values.autoscaling.enabled }} - replicas: {{ .Values.replicaCount }} - {{- end }} - selector: - matchLabels: - {{- include "example.selectorLabels" . | nindent 6 }} - template: - metadata: - {{- with .Values.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "example.labels" . | nindent 8 }} - {{- with .Values.podLabels }} - {{- toYaml . | nindent 8 }} - {{- end }} - spec: -`, - - trimmedText: ` - yaml: test T1