Rocky_Mountain_Vending/.pnpm-store/v10/files/2e/7af39a3c4641c7b56d9f41c121f563f864ffd239a0b7c434b5bae83c69530e6aab8c51f3ded30788e2aa691bda33fd1c49fe125724f6845beec4f05588a070
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

56 lines
No EOL
1.8 KiB
Text

"use strict";
/* ------------------------------------------------------------------------ */
require ('chai').should ()
/* ------------------------------------------------------------------------ */
describe ('path', () => {
const path = require ('../impl/path')
it ('resolves', () => {
path.resolve ('./foo/bar/../qux').should.equal (process.cwd () + '/foo/qux')
})
it ('normalizes', () => {
path.normalize ('./foo/./bar/.././.././qux.map./').should.equal ('qux.map./')
path.normalize ('/a/b').should.equal ('/a/b')
path.normalize ('http://foo/bar').should.equal ('http://foo/bar')
})
it ('computes relative location', () => {
path.relativeToFile ('/foo/bar.js', './qux.map')
.should.equal ('/foo/qux.map')
path.relativeToFile ('/foo/bar/baz.js', './../.././qux.map')
.should.equal ('/qux.map')
path.relativeToFile ('/foo/bar', 'webpack:something')
.should.equal ('webpack:something')
path.relativeToFile ('/foo/bar', 'web/pack:something')
.should.equal ('/foo/web/pack:something')
})
it ('works with data URIs', () => {
path.relativeToFile ('/foo/bar.js', 'data:application/json;charset=utf-8;base64,eyJ2ZXJza==')
.should.equal ( 'data:application/json;charset=utf-8;base64,eyJ2ZXJza==')
path.relativeToFile ('data:application/json;charset=utf-8;base64,eyJ2ZXJza==', 'foo.js')
.should.equal ( 'foo.js')
})
it ('implements isURL', () => {
path.isURL ('foo.js').should.equal (false)
path.isURL ('/foo/bar.js').should.equal (false)
path.isURL ('https://google.com').should.equal (true)
})
})