Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Sep 18, 2023
1 parent 3d1667d commit 7c4ce89
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions tests/integration/mutation/create/field_kinds/bool_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Copyright 2023 Democratized Data Foundation
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.

package field_kinds

import (
"testing"

testUtils "github.com/sourcenetwork/defradb/tests/integration"
)

func TestMutationCreateBool_WithValidBool(t *testing.T) {
test := testUtils.TestCase{
Description: "Create mutation, boolean field, with a valid boolean",
Actions: []any{
testUtils.SchemaUpdate{
Schema: `
type User {
name: String
verified: Boolean
}`,
},
testUtils.CreateDoc{
Doc: `{
"name": "John Grisham",
"verified": true
}`,
},
},
}

testUtils.ExecuteTestCase(t, test)
}

0 comments on commit 7c4ce89

Please sign in to comment.