Skip to content

Commit

Permalink
Add test that ROSLIB is accessible globally from importing the UMD bu…
Browse files Browse the repository at this point in the history
…ndle
  • Loading branch information
EzraBrooks committed Mar 18, 2024
1 parent 6494b8a commit 3a85db9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/cdn-import.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { describe, it, expect } from 'vitest';
import '../dist/RosLib.umd.cjs';

describe('Using as if imported from a CDN', () => {
it('Adds itself to the global namespace', () => {
expect(globalThis.ROSLIB).toBeTruthy();
})
});

0 comments on commit 3a85db9

Please sign in to comment.