Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
divmain committed Jun 26, 2023
1 parent 5512408 commit cca6784
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ it('linter returns empty diagnostics on correct file', async () => {
expect(diagnostics).toEqual([]);
});

it('transform returns javascript metadata', async () => {
it('mapLwcMetadataToInternal returns expected javascript metadata', async () => {
const filepath = path.join('src', 'javascript', '__tests__', 'fixtures', 'metadata.js');
const content = fs.readFileSync(filepath, 'utf8');

Expand All @@ -120,8 +120,6 @@ it('transform returns javascript metadata', async () => {

const modernMetadata = collectBundleMetadata(options);
const metadata = mapLwcMetadataToInternal(modernMetadata.files[0] as ScriptFile);

// TODO: see if the rest of this works as expected
const properties = getProperties(metadata);

expect(metadata.doc).toBe('* Foo doc');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ it('can map new metadata to old metadata', async () => {
const filepath = path.join('src', 'javascript', '__tests__', 'fixtures', 'metadata.js');
const content = fs.readFileSync(filepath, 'utf8');

// Work with new metadata.
const newMetadataOpts: BundleConfig = {
type: 'internal',
name: 'metadata',
Expand Down

0 comments on commit cca6784

Please sign in to comment.