code: social,path,packages (2 files)

This commit is contained in:
2025-12-26 00:41:59 +00:00
parent 0d966cc512
commit e22f0cedae
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { describe, it, expect } from 'vitest'
import { appendExportPath } from './append-export-path'
describe('appendExportPath', () => {
it('joins segments with trimmed slashes', () => {
expect(appendExportPath('root/', '/file.txt')).toBe('root/file.txt')
})
it('handles empty base path', () => {
expect(appendExportPath('', 'file.txt')).toBe('file.txt')
})
it('handles empty segment', () => {
expect(appendExportPath('root', '')).toBe('root')
})
})

View File

@@ -0,0 +1,7 @@
#include <iostream>
int main(int argc, char** argv) {
std::cout << "Social Hub CLI" << std::endl;
std::cout << "Args: " << argc - 1 << std::endl;
return 0;
}