Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit fe00fd6

Browse files
committed
Fix failing specs
1 parent 009b767 commit fe00fd6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/snippets-spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe("Snippets extension", () => {
1919
spyOn(Snippets, 'loadAll');
2020
spyOn(Snippets, 'getUserSnippetsPath').andReturn('');
2121

22-
waitsForPromise(() => atom.workspace.open('sample.js'));
22+
waitsForPromise(() => atom.workspace.open(path.join(__dirname, 'fixtures', 'sample.js')));
2323
waitsForPromise(() => atom.packages.activatePackage('language-javascript'));
2424
waitsForPromise(() => atom.packages.activatePackage('snippets'));
2525

@@ -1183,13 +1183,13 @@ foo\
11831183
});
11841184
});
11851185

1186-
describe("when atom://.atom/snippets is opened", () => {
1187-
it("opens ~/.atom/snippets.cson", () => {
1186+
describe("when atom://.pulsar/snippets is opened", () => {
1187+
it("opens ~/.pulsar/snippets.cson", () => {
11881188
jasmine.unspy(Snippets, 'getUserSnippetsPath');
11891189
atom.workspace.destroyActivePaneItem();
11901190
const configDirPath = temp.mkdirSync('atom-config-dir-');
11911191
spyOn(atom, 'getConfigDirPath').andReturn(configDirPath);
1192-
atom.workspace.open('atom://.atom/snippets');
1192+
atom.workspace.open('atom://.pulsar/snippets');
11931193

11941194
waitsFor(() => atom.workspace.getActiveTextEditor() != null);
11951195

0 commit comments

Comments
 (0)