Merge branch 'main' of https://github.com/steveyegge/beads
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -222,7 +222,7 @@ func FindBeadsDir() string {
|
|||||||
|
|
||||||
// FindJSONLPath returns the expected JSONL file path for the given database path.
|
// FindJSONLPath returns the expected JSONL file path for the given database path.
|
||||||
// It searches for existing *.jsonl files in the database directory and returns
|
// It searches for existing *.jsonl files in the database directory and returns
|
||||||
// the first one found, or defaults to "issues.jsonl".
|
// the first one found, or defaults to "beads.jsonl".
|
||||||
//
|
//
|
||||||
// This function does not create directories or files - it only discovers paths.
|
// This function does not create directories or files - it only discovers paths.
|
||||||
// Use this when you need to know where bd stores its JSONL export.
|
// Use this when you need to know where bd stores its JSONL export.
|
||||||
|
|||||||
@@ -168,9 +168,9 @@ func TestFindJSONLPathDefault(t *testing.T) {
|
|||||||
// Create a fake database path (no .jsonl files exist)
|
// Create a fake database path (no .jsonl files exist)
|
||||||
dbPath := filepath.Join(tmpDir, "test.db")
|
dbPath := filepath.Join(tmpDir, "test.db")
|
||||||
|
|
||||||
// Should return default issues.jsonl
|
// Should return default beads.jsonl
|
||||||
result := FindJSONLPath(dbPath)
|
result := FindJSONLPath(dbPath)
|
||||||
expected := filepath.Join(tmpDir, "issues.jsonl")
|
expected := filepath.Join(tmpDir, "beads.jsonl")
|
||||||
if result != expected {
|
if result != expected {
|
||||||
t.Errorf("Expected '%s', got '%s'", expected, result)
|
t.Errorf("Expected '%s', got '%s'", expected, result)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user